Review Request 110580: Optimize: Cache initial cmake variables

Aleix Pol Gonzalez aleixpol at kde.org
Tue May 21 17:50:58 UTC 2013


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

Ship it!



projectmanagers/cmake/parser/cmakeparserutils.cpp
<http://git.reviewboard.kde.org/r/110580/#comment24407>

    Please, rename the ifdef'ed too


Makes sense, please push it.

- Aleix Pol Gonzalez


On May 21, 2013, 5:41 p.m., Milian Wolff wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110580/
> -----------------------------------------------------------
> 
> (Updated May 21, 2013, 5:41 p.m.)
> 
> 
> Review request for KDevelop and Aleix Pol Gonzalez.
> 
> 
> Description
> -------
> 
> Do not call `cmake --system-information` for every project - cache it instead. On my system this call takes ~1s and thus in my favorite session this slows down startup by ~5-10s (1s for every project I have open in that project).
> 
> I post the review request here because I'm not sure whether there are use cases where we do not want this behavior. Like a system upgrade where system information variables changed. But then again - we don't actually reload the project there anyways... So - is this OK? Aleix?
> 
> Also - should this maybe also use the cmake binary configured for a given project? That would be for a different patch then of course. Just interested.
> 
> 
> Diffs
> -----
> 
>   projectmanagers/cmake/parser/cmakeparserutils.cpp 805e6f4 
> 
> Diff: http://git.reviewboard.kde.org/r/110580/diff/
> 
> 
> Testing
> -------
> 
> Ran the stuff. Seems to work :]
> 
> 
> Thanks,
> 
> Milian Wolff
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130521/58d189df/attachment.html>


More information about the KDevelop-devel mailing list