Skip to content

cmStringAlgorithms: Add faster cmJoin overloads for strings

Oleksandr Koval requested to merge OleksandrKvl/cmake:optimize-cmJoin into master

cmJoin() is often used with std::string ranges. Generic implementation uses std::ostringstream which is not optimal. With strings we can avoid operator<<() and make much faster implementation. Additional 'initial' argument is useful for cmStringCommand.cxx:HandleAppendCommand().

Merge request reports

Loading