Bug 358483

Summary: prioritize active document while parsing
Product: [Developer tools] kdevplatform Reporter: Milian Wolff <mail>
Component: languageAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal Keywords: release_blocker
Priority: VHI    
Version First Reported In: git master   
Target Milestone: 5.0.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.0.0
Sentry Crash Report:

Description Milian Wolff 2016-01-24 14:04:22 UTC
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
Comment 1 Kevin Funk 2016-03-15 21:29:17 UTC
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