Optimize cmSystemTools::SplitPath
In some performance metrics I'm looking at, cmSystemTools::SplitPath
is around 8% of the computation time, most of it from cmSystemTools::CollapseFullPath
during the generate step.
Since C++17 has std::string_view
, it would be nice to instead return a std::vector<std::string_view>
if available (CMake doesn't require C++17 yet).