Re: Xcode 4.2 - compliments for C++ development -- and some wonders
Re: Xcode 4.2 - compliments for C++ development -- and some wonders
- Subject: Re: Xcode 4.2 - compliments for C++ development -- and some wonders
- From: Andreas Grosam <email@hidden>
- Date: Sat, 03 Dec 2011 12:52:23 +0100
On Dec 3, 2011, at 7:47 AM, Joar Wingfors wrote:
> Hello again Ruslan,
>
> Thanks for your feedback!
>
> On 2 dec 2011, at 15:05, Ruslan Zasukhin wrote:
>
>> 1) Indexing ...
>>
>> I think one of painful places yet. Too RAM hungry.
>> And yet too slow comparing to e.g. Visual or Visual Assist.
>> Or QT Creator -- our guy say it was able in ONE second parse folder
>> of Valentina Studio sources... Wow.
>>
>> On Modern macbook quad-i7 our project 4500-5000 files index about 5 minutes.
>> On mac mini core duo 2 around 1 hours.
>
>
> I wouldn't argue that we're perfect when it comes to indexing performance, but I also don't think that it's possible to parse and persist the information in 5000 C++ source files in one second…
One source of the performance issue is probably the sheer number of allocations that the indexing process is currently performing. Even worse, allocations occur concurrently on different threads in high frequency. This leads to a high contention of a malloc related spin-lock "_spin_lock$VARIANT$mp". For example on my system, when indexing, the total time spent in this spin-lock takes more than 13%. (I didn't know this, if there were not this awesome tool "Instruments" ;) )
The algorithm figuring out which dependent files actually need re-indexing after a file has been edited, could be improved as well. For instance, when I make changes within a comment, it makes no sense to re-index the dependent files. But the indexer starts its job anyway.
Andreas _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden