Review Request: Do not perform background parsing when there are projects in state of loading

Aleix Pol Gonzalez aleixpol at gmail.com
Mon Feb 28 16:02:54 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100688/#review1699
-----------------------------------------------------------


AFAIK this was committed. Please when you do please use REVIEW: <review-id> to close reviews or close it by hand. Otherwise it's just hard to track down these reviews.

Also, this is adding a regression (just a guess). If a project fails loading, then files are never going to be parsed.

- Aleix


On Feb. 22, 2011, 11:11 p.m., Dmitry Risenberg wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100688/
> -----------------------------------------------------------
> 
> (Updated Feb. 22, 2011, 11:11 p.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Summary
> -------
> 
> In BackgroundParser, before running actual parsing, check whether there are projects in state of loading. If there are, wait until they are loaded completely. Without this, initially open files may be parsed two times: first as open files, second as members of a project. In the second case the list of include paths may be different, and that may cause some recursive re-parsing. Also differet sets of defines may cause re-parsing, though it wasn't tried.
> 
> 
> Diffs
> -----
> 
>   language/backgroundparser/backgroundparser.h a8a7b06 
>   language/backgroundparser/backgroundparser.cpp 28bdfee 
>   language/editor/modificationrevision.h d1d54ae 
>   shell/project.cpp 7b2bdf6 
>   shell/projectcontroller.cpp 9b6c96f 
>   shell/tests/shelldocumentoperationtest.cpp 99e5855 
> 
> Diff: http://git.reviewboard.kde.org/r/100688/diff
> 
> 
> Testing
> -------
> 
> Initial testing time varies greatly from launch to launch, so could not estimate the influence on average parsing time. However, the worst-case parsing time (when open files are parsed before their projects are loaded and then reparsed) does decrease.
> 
> 
> Thanks,
> 
> Dmitry
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110228/78b1e48d/attachment.html>


More information about the KDevelop-devel mailing list