When restarting KDevelop with a session that opens up many files we currently don't prioritize the currently active document. Note that this also changes repeatedly at startup as the documents get reopened from the last run. We probably need to add some timer there and then increase the priority for the active document's parsejob somehow. Reproducible: Always
Git commit cc205959b1df4a00a58823adb9382edac1160a67 by Kevin Funk. Committed on 15/03/2016 at 21:27. Pushed by kfunk into branch '5.0'. DUChain: Prioritize active documents Prioritize document parsing in the background parser for documents which just have been activated (i.e. the UI switched to a view of this particular document). Testing: Start up heaptrack session, with around 20 tabs open. Switch to another tab at start up. Observation: See that the current document in the tab gets a high priority in the background parser. Differential Revision: D1145 M +19 -5 language/duchain/duchain.cpp http://commits.kde.org/kdevplatform/cc205959b1df4a00a58823adb9382edac1160a67