Use background priority for all clang parse threads.
ClosedPublic

Authored by mwolff on Feb 20 2016, 10:46 PM.

Details

Summary

This sounds like a useful thing to do and should reduce potential
UI lockups when the parse threads are busy.

Test Plan

all tests pass

Diff Detail

Repository
R32 KDevelop
Branch
5.0
Lint
Lint Skipped
Unit
Unit Tests Skipped
mwolff updated this revision to Diff 2407.Feb 20 2016, 10:46 PM
mwolff retitled this revision from to Use background priority for all clang parse threads..
mwolff updated this object.
mwolff edited the test plan for this revision. (Show Details)
mwolff added a reviewer: KDevelop.
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptFeb 20 2016, 10:46 PM
kfunk requested changes to this revision.Feb 21 2016, 7:20 PM
kfunk added a reviewer: kfunk.
kfunk added a subscriber: kfunk.

If I understand http://clang.llvm.org/doxygen/group__CINDEX.html#ga1b451634928d6bcc961bf72a40e4d035 correctly, then CXGlobalOpt_ThreadBackgroundPriorityForIndexing sounds like the more suitable flag for us...?

Would lead to:

  • background prio for indexing jobs
  • normal prio for jobs required by code completion

... iiuc.

This revision now requires changes to proceed.Feb 21 2016, 7:20 PM
kfunk added a comment.Feb 21 2016, 7:21 PM

Nice find nevertheless, never saw this libclang function!

mwolff updated this revision to Diff 2421.Feb 21 2016, 10:25 PM
mwolff edited edge metadata.

attended kfunk's review

kfunk accepted this revision.Feb 21 2016, 10:29 PM
kfunk edited edge metadata.
This revision is now accepted and ready to land.Feb 21 2016, 10:29 PM
This revision was automatically updated to reflect the committed changes.