The source project of this merge request has been removed.
Minor optimizations
Optimizations which have been done:
- Reduce unnecessary
strlen
calls by replacing them withsizeof
. Avoid callingstrlen
inside loops. - Search for characters instead of single-character strings (
find_last_of
). - Do not pass
someStr.c_str()
to functions withconst std::string &
parameter. Pass string instead. It is cheaper than constructing strings from pointer again and again.