Hey guys. Over time in 4 i have started to notice a bit of sluggishness. It has crept in slowly since 4 was released to the general public. Basically i will get the SBBOD nearly every time i click on something or type something. Some examples:
I am editing my .m and realise i need to drop over to my .xib. So i click on my .xib, and then have to wait about 10 seconds for the SBBOD then it will show up, the same will happen when returning to the .m file.
I am editing a 400+lines long code, and need to scroll to the bottom. First i must wait for the SBBOD to finish spinning then the scroll (that i set to start before the SBBOD appeared) will jump down in one massive movement - this is the biggest pain as i usually end up scrolling too far.
I am entering some code and instead of the auto complete filling it in i must again wait for the SBBOD to finish before i can use auto complete. This one is also annoying because ill be typing faster than my computer and end up returning to a new line, not selecting the auto complete from the list.
These are just 3 of the most annoying times that i will see the SBBOD, but i can get it when selecting different UI elements in one xib, or changing the inspector type, or changing the name of an attribute in core data. the list just goes on, and while 2 weeks ago i didnt mind it so much now i am ready to blow up. It is increasing my development time quite a lot as i can spend upwards of 10 mins a day sat watching that god damn SBBOD. Has anyone else seen this or is it just in my case?
Just to clear it up i very much doubt its my tower: Intel 8-core Xeon 2.8, 6GB RAM, 320gb HD (approx 100 free). So my computer shouldnt really be sweating over this but it is. Any ideas? My next move to be honest will be to contact Apple about this - a £1500+ (albeit a 3 year old one) computer shouldnt be chocking this much with only xcode and safari open, when almost always i have 1GB RAM free and about 98% CPU cycles free
I haven't been having those issues. Although there a couple things which might be important factors:
1) I put a 160GB Intel 320 series SSD in my 2010 MBP (dual core 2.4GHz i5, 8GB) a couple months ago
2) I disabled the Subversion IDE plugin
Honestly, I would guess that #2 is the more important step. Xcode just seems to spend way too much CPU time (and network, too) to continuously keep the file list updated with current source control status.
There seems to be no way to tell Xcode whether or not to enable the plugins; if your project is under version control, it always wants to do it. So you have to do it the brute force way:
Code:
cd /Developer/Library/Xcode/PrivatePlugIns/
sudo mv IDESubversion.ideplugin/ IDESubversion.DISABLED
For Subversion operations, I use a mixture of the command line and Cornerstone. Honestly have never been a fan of version control built into IDEs anyway (not on Xcode, not on Visual Studio, not on Eclipse).
__________________ Recall It!Tag your notes. Tag your photos. Tag your thoughts. Tag your life.
Thanks for the replies guys, interesting to hear about other experiences.
dljeffery - thanks for the tip, i have just dropped that into terminal, and will see how it affects the speed today. Ill post back after to let people know what type of effect it has.
dljeffery - thanks for the tip, i have just dropped that into terminal, and will see how it affects the speed today. Ill post back after to let people know what type of effect it has.
Does turning off subversion help?
So far I know of 3 ways to improve XCode 4's performance
1. Turn off the built in subversion. There is no way to do this in XCode but you can do it via command line below
Code:
cd /Developer/Library/Xcode/PrivatePlugIns/
sudo mv IDESubversion.ideplugin/ IDESubversion.DISABLED
2. Delete the project.xcworkspace file. To do this right-click on YourProject.xcodeproj select "Show Package Contents" and delete project.xcworkspace.
3. Set XCode to 32-bit mode. Right click the app (in /Developer/Applications/XCode.app) and select "Get Info" and check "Open in 32-bit mode".
I just upgraded to XCode 4 a few days ago, I can resume it in 3 words: different, fancy & slow...
ok, it has some improvements here and there, and many things are changed into place, looks and works fancy to me, a bit bloated, the interface reminds me of itunes , but what bugs me, is that I find it sluggish.. I can get used to all the changes, "improvements", or whatever, but if it is not fast as I was used to XCode 3, then it does not convince me, I miss XCode 3 I hope Apple improves XCode 4 speed..