Skip to content
Commit 5ce71a7a authored by Milian Wolff's avatar Milian Wolff
Browse files

Optimize CMakeManager::fileInformation for path lookups

KDevelop will try to parse all C++ files in a project, independent
of whether they are actually part of any CMake file. This is great
for new files that aren't added yet, or for temporary test files.

But the lookup of the include/define metadata for such indirect files
was exceedingly expensive since we had to iterate the folder hierarchy
potentially a lot.

Now, we build a lookup table for folders too which greatly reduces
the amount of lookups we have to do. In a project I'm working on,
this has a huge performance impact when reloading a project, e.g.
after a cmake file was changed.
parent 716ca198
Pipeline #16023 passed with stage
in 53 minutes and 5 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment