Xcode 4 excruciatingly unresponsive
Xcode 4 excruciatingly unresponsive
- Subject: Xcode 4 excruciatingly unresponsive
- From: James Bucanek <email@hidden>
- Date: Tue, 19 Apr 2011 11:07:10 -0700
Hello all,
I've been struggling with Xcode 4, and my latest problem is that
is it excruciatingly sluggish. About every 20 seconds, it hangs
for 5 to 10 seconds. Needless to say, it's really eating into my
productivity, not to mention my nerves. Try using code
completion when every third time you get the spinning technical
pizza of death for 5 seconds.
Running Spin Control, I log a lot of samples that look like this:
716 Thread_170935 DispatchQueue_1: com.apple.main-thread (serial)
716 0x100000eec
716 NSApplicationMain
716 -[NSApplication run]
715 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
715 _DPSNextEvent
715 BlockUntilNextEventMatchingListInMode
715 ReceiveNextEventCommon
715 RunCurrentEventLoopInMode
715 CFRunLoopRunSpecific
715 __CFRunLoopRun
709 __NSFireDelayedPerform
709 -[DVTDelayedValidator doValidation:]
709 -[IDEWorkspaceDocument writeStateData]
687 -[DVTStateRepository stateDataOrError:]
568 -[NSKeyedArchiver finishEncoding]
567 _CFPropertyListCreateXMLData
567 _CFAppendXML0
567 _CFAppendXML0
564 _CFAppendXML0
395 _CFAppendXML0
271 _CFAppendXML0
222 _plistAppendFormat
...
It would appear that every few seconds, Xcode decides to create
some monster XML document that hangs the main thread for several
seconds. There is usually a garbage collection thread that's
running at the same time, which also might be slowing down the
main thread as I find lots of sample stack fragments like this:
64 _CFStringAppendFormatAndArgumentsAux
62 __CFStringAppendBytes
60 __CFStringChangeSizeMultiple
45 __CFStrAllocateMutableContents
43 auto_zone_allocate_object
42 Auto::Zone::block_allocate(Auto::Thread&,
unsigned long, unsigned int, bool, bool)
40 __spin_lock
Anyway, I'm putting this out there hoping that someone might
know some trick that will stop this. I'd also be happy to file a
bug report, if that would help. I have *lots* of these Spin
Control samples.
James
James Bucanek
____________________________________________________________________
Author of Professional Xcode 3 ISBN: 9780470525227
<http://www.proxcode3.com/>
and Learn Objective-C for Java Developers ISBN: 9781430223696
<http://objectivec4java.com/>
_______________________________________________
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