Re: Xcode eats 100% CPU and more while typing
Re: Xcode eats 100% CPU and more while typing
- Subject: Re: Xcode eats 100% CPU and more while typing
- From: Michael Hecht <email@hidden>
- Date: Thu, 8 May 2008 13:06:58 -0400
On Feb 5, 2008, at 5:29 PM, Chris Espinosa wrote: On Feb 5, 2008, at 1:58 PM, William Bates wrote: The bug report was filed some months ago and the response was
"already reported / consolidated." Sorry, I don't have the tracking
number handy.
The only bug report I see from you was a dup of the common Xcode 3.0 hang-on-project-open due to the localhost configuration issue. I don't see one on slow typing. I expect that the OP's problem is due to the very large array in a C++ file. We know there is a degenerate case there and have already made some performance improvements in the next version of Xcode, but we still have room for improvement when syntax-coloring very large structures.
Chris, I experience the same hangs as Axel Balley (the original poster). They seem to occur after the project has been modified (sources added or removed). My samples are very similar to Axel's, and seem to point to a CodeSense reindex (PBXProjectIndex).
What I fail to understand is:
- The reindex is obviously happening on its own thread.
- I have a multi-core Mac (a Dual Core Mac Pro 17").
- One of the cores is 100% busy; the other one is idle.
- Why is Xcode's UI thread blocked?
1867 CFRunLoopRunSpecific 1390 mach_msg 1390 mach_msg_trap 1390 mach_msg_trap
477 __CFRunLoopDoObservers 477 -[XCRunLoopMonitor _runLoopWillRun] 477 -[NSConditionLock lockWhenCondition:] 477 -[NSConditionLock lockWhenCondition:beforeDate:] 477 -[NSCondition waitUntilDate:]
-- Michael Hecht Principal Systems Developer, Macintosh JMP -- Statistical Discovery.™ From SAS.
|
_______________________________________________
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