Search |
||
Netbeans on Mac TipPosted by joshy on November 23, 2005 at 11:14 AM PST
As some of you may know I'm a big Mac person. I split my time equally between my iBook (now heading back to the shop, alas) and my WinXP desktop. Being a dyed in the wool plain jane text editor type of programmer I've used jEdit for the past five years and have only recently started using an IDE like Netbeans. I've found Netbeans to a great productivity booster but on my iBook it seems to generate garbage at a mad pace. This is okay, it's just garbage, not a memory leak; but it's a pain when the editor locks up for five seconds to do garbage collection. Fortunately there is a solution. I recently gave a talk on application optimization at JavaOne Tokyo. The last part of the presentation talks about how choose different garbage collectors to improve perceived performance. In particular the Mark and Sweep garbage collector will operate incrementally, meaning it won't lock your application while done one big GC. Instead it will do lots of tiny GCs which take a bit longer but improve the perceived performance of your app. And after all, what the user perceives is the most important thing. The cool part is you don't need to do any code changes to use this garbage collector. Just a commandline switch. So, back to Netbeans. Yesterday I'd had it with the long GCs, remembered the commandline switch from my talk, and decided to do something about it. Here's how to make Netbeans on a Mac use the Mark and Sweep GC.
For my Mac brethern out there I hope you find this useful. For those of you not using Netbeans 5 I urge you to try it out. It doesn't suck! (and coming from a lifetime text editor guy that's saying a lot :) - Josh »
Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|