PDA

View Full Version : Xcode processor spikes


_jyk_
2006.09.14, 03:57 PM
I've been having some trouble with processor spikes when running Xcode, and was wondering if others had encountered this problem and might know of a solution.

About once every 2 minutes, Xcode spikes and gives the 'beach ball of death' for 5-10 seconds. Not a showstopper obviously, but somewhat inconvenient.

The activity monitor shows Xcode maxing out the processor at these times. It also shows 10 or more threads, memory usage of about 150 MB, and virtual memory usage of about 350 MB. I don't know if these numbers are normal are not.

I'm running Xcode 2.4 in OS X 10.4.7 on a Dual 800 with 1 gig of memory. I generally have about 10 to 15 files open in Xcode at once.

I read a recent thread which suggested clearing the file histories to improve Xcode's performance. I imagine limiting the file history depth would help as well. Is there any way to make these adjustments globally, or must it be done file-by-file from the menu at the top of the editor? Also, is there a way to set the default file history depth for new files?

Also, I'm not using code completion, although the 'enable for all projects' indexing box is checked.

So I'm wondering if anyone knows what Xcode might be up to during these spikes. I suppose I could use a different editor, but I thought I'd ask here first to see if there was an easy fix.

Many thanks,

Jesse

PowerMacX
2006.09.14, 05:41 PM
Do you have predictive compilation enabled?

_jyk_
2006.09.14, 06:27 PM
Do you have predictive compilation enabled?Yes, I think that was it! A google search for Xcode predictive compilation even turns up the following:

"On slower machines, enabling predictive compilation may interfere with Xcode performance during editing."

Indeed :-)

Thanks very much for your help.