Optimizing Zend Studio on Mac OS X
-
Recently, I purchased a Mac mini and started using it as my home computer. Overall, it is a pretty nice little machine but its 1.42 GHz G4 processor isn’t the fastest thing out there. On some larger applications, such as Zend Studio, it is a little sluggish. Fortunately, there are two things that you can do with Zend Studio to get an immediate performance increase.
First and easiest, select
Tools > Preferences > Code Completion
from the menu bar, and findAutomatically Show Code Completion List
. IncreasePopup after ____ ms
to 500 ms and the text editor will immediately become more responsive.Second, you can try increasing Studio’s memory footprint if you have enough RAM. Using the Finder, navigate to the folder
/Applications/Zend/ZendStudioClient-5.0.0/bin
, and then control-click (right-click) onZDE
and selectShow Package Contents
from the context menu. Double-click onContents/Info.plist
to open it in the Property List Editor. UnderRoot > Java > VMOptions
, change the string to specify the minimum and maximum size of memory to use. I have 1 GB RAM, so I use-Xms128m -Xmx512m
to specify a minimum of 128 MB and a maximum of 512 MB. Save your changes and then restart Studio. You’ll need to play around with the setting to see how it affects performance. Your results will vary based on how much physical RAM is installed in your machine. This tip is also useful for other Java applications, such as Eclipse.It’s worth noting that you can do both of these tweaks on all platforms supported by Studio. On platforms other than Mac OS X, the memory settings are command line switches to Java in the shortcut or script that starts Studio.
After making these two changes, I have found the Studio’s performance on the Mac mini to be very acceptable. Powerbook users (also with the G4 processor) should benefit from them as well.