Skip to content

Minor optimizations

Leonid Pospelov requested to merge (removed):minor-performance-fixes into master

Optimizations which have been done:

  1. Reduce unnecessary strlen calls by replacing them with sizeof. Avoid calling strlen inside loops.
  2. Search for characters instead of single-character strings (find_last_of).
  3. Do not pass someStr.c_str() to functions with const std::string & parameter. Pass string instead. It is cheaper than constructing strings from pointer again and again.

Merge request reports