Commit decd4cc1 authored by Milian Wolff's avatar Milian Wolff
Browse files

Cache defines/includes on-demand.

This improves startup speed as we can load the defines/includes
plugin much quicker now. Furthermore, we only initialize the
includes/defines for the compiler(s) that are actually used,
not all available ones, thus decreasing memory consumption.

Before:
Successfully loaded plugin "KDevDefinesAndIncludesManager" from
...kdevplatform/21/kdevdefinesandincludesmanager.so" - took: 200 ms

After:
Successfully loaded plugin "KDevDefinesAndIncludesManager" from
...kdevplatform/21/kdevdefinesandincludesmanager.so" - took: 20 ms

REVIEW: 122145
parent 6484c638
......@@ -139,9 +139,4 @@ Path::List GccLikeCompiler::includes() const
GccLikeCompiler::GccLikeCompiler(const QString& name, const QString& path, bool editable, const QString& factoryName):
ICompiler(name, path, factoryName, editable)
{
if (!path.isEmpty()) {
//cache includes/defines
includes();
defines();
}
}
Markdown is supported
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