Lehks / NostraUtils

A Utility Library for the Nostra Game Engine.
MIT License
6 stars 0 forks source link

String::replace(const StringView&, const StringView&) performance enhancement #39

Closed Lehks closed 6 years ago

Lehks commented 6 years ago

The method String::replace(const StringView&, const StringView&) first removes the target string and then inserts the replacement string again . This is very heavy on the performance.