Skip to content

cmSourceFile: avoid unnnecessary copies

not a big difference: in one of my projects it reduces the time spent in here from 210ms to 155ms, but it's a low hanging fruit

--

the copies in cmSourceFile::FindFullPath are one of the hotspots of my build system: we can easily avoid them by capturing by reference instead of by value

Merge request reports