I used to be in the category of “Zend Studio runs sweet, what are you all complaining about?” but after upgrading to Zend Studio 5.5 I sadly found myself in the “I just want to code, why are you running so slow!?” category.
Here’s how I managed to speed things up
1. Give it more RAM
On the Mac goto Applications/Zend/ZendStudio-x.x.x/bin/ and right click on ZDE, choose “Show Package Contents”
Open up Contents folder and open Info.plist with your favourite editor
Find…
<key>VMOptions</key>
… and change the contents of the line below it to something like this …
<string>-Xms128m -Xmx256m</string>
This tells Java to allocate a minimum of 128mb ram and a maximum of 256mb, your mileage may very, I have 1GB of ram on my machine and find these settings to work just fine.
2. Tone down the Code completion
By default my Zend Studio had set Code Complete pop-up to appear after 0ms, this is kind of taxing on the CPU so nudge it up to 100ms or so, and do the same with the Call Tips, set that to a good 200-300ms
3. Don’t use the OS Look and Feel
I’ve found that sometimes this will help, and sometimes I just can’t see a difference in performance. But if you’re really stuck with a slow installation of Zend Studio then try unchecking the “Use OS Look and Feel” option under the main Preferences window
4. Clear the Cache
If you are still seeing Zend Studio running slow then try clearing the cache, this is a serious time saver especially if you have large cache files sitting around (40mb+)
On the Mac delete everything under …
/Users/ant/ZDE/config_x.x/caches/
(Of course replacing ant with your username) also note that for older versions the cache directory may be stored elsewhere, but its never hard to find.
Conclusion
Zend Studio is a great IDE for PHP, but now and again it can handle like a pregnant yak, so you might want to bookmark this page for when that happens.
Filed in Nerd musings | Tags: php ide, zend studio
