D7745: KDevelop (full) project parsing: defer until all projects have been loaded.

René J.V. Bertin noreply at phabricator.kde.org
Sat Sep 9 09:02:46 UTC 2017


rjvbb added a comment.


  >   Can you please elaborate on this? I didn't get how importing distinct projects can affect each other.
  
  Once the first project of a series has been imported completely it starts to parse. That means a lot of file I/O and that's the level where the competition occurs. The parser can be quite RAM hungry so there may also be competition at that level.
  
  I haven't yet had the opportunity to do timing comparisons and expect they'd be tricky to get. What I can try to do is start an elapsed timer when the 1st project starts importing and print its output via qCDebug when the last project has been imported. Combined with an env. var check to go back to the non-deferred start. That way you can get an idea yourself with minimal effort.
  
  Do any of you ever stop the parser because it's just not justified to let it burn CPU going through all those (unchanged) files again? With this mod it should become a bit easier to do that at the earliest possible moment.
  
  FWIW, my initial idea was to use the Background Parser/Delay value here too but that appears to require additional and unjustified complexity.

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D7745

To: rjvbb, #kdevelop
Cc: arrowdodger, brauch, kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170909/30cf8120/attachment-0001.html>


More information about the KDevelop-devel mailing list