Commit 5469ed4e authored by Igor Kushnir's avatar Igor Kushnir

Reduce ParseProjectJob's memory usage

d->filesToParse is never used after all its elements are queued for
parsing. If parseAllProjectSources=true is passed to ParseProjectJob(),
this set contains almost as any elements as the number of files in the
project. If at least one of the project's documents is open, this set is
already detached, so setting it to {} frees memory. Otherwise, setting
to {} prevents detaching in case the project's file set changes later.
parent c66c0373
......@@ -206,4 +206,6 @@ void ParseProjectJob::queueFilesToParse()
processed = 0;
}
}
d->filesToParse = {}; // free memory or prevent detaching
}
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