7 ms·
Speed up your eclipse as a super fast IDE
- d0m 15y agoAnyone using Eclipse can confirm that? I've moved away from that IDE for years because how slow it was. (Also because it was so damn hard to configure it the way I wanted) I remember though putting somewhat similar in my config file.
- dekz 15y agoThe most notable change is probably the RAM disk, anyone with an SSD would be able to agree that eclipse is fast (more usable) when running on a drive with an SSD. All that compile on the fly as you're typing would be quite IO bound. I use eclipse at work on a spinning disk and at home on an SSD, using the SSD makes an incredible difference.
- pan69 15y agoI'm running Eclipse on Ubuntu (x64) on OpenJDK and it works fine. My hardware isn't particularly fast either. I might reboot one a week or so. I do have 8GB of memory though.
- bad_user 15y agoFor some reason, on Ubuntu x86, Eclipse is really slow for me. IntelliJ Idea is much better. And now the community edition comes with capabilities for Android projects. I recommend it instead of Eclipse.
- zokier 15y agoWhat JVM you are running? See http://news.ycombinator.com/item?id=2694965 http://news.ycombinator.com/item?id=2694965
- ashr 15y agoYes. With the eclipse.ini changes alone mine starts in 6 seconds now instead of 30+ seconds. Intel Core 2 Duo P8400 CPU, 4 GB DDR3 RAM.
- kleiba 15y agoOut of curiosity, what are you using now?
- davideuler 15y agoOn my Aspire 4745G laptop with 4g ram windows 7 x64, it is fairy slow to run eclipse x64 with jdk x64. So I adjusted the vm arguments and some eclipse setting mentioned above, and found it runs super fast after the change. If it works or does not work on your machine, or any other smart way to speed up your eclipse, pls let me know.
- elb0w 15y agoor use vim
- wisty 15y agoVim doesn't compile as you type, so it can't give you much intelligent interaction with your code. Obviously, there are work-arounds (like using clean APIs and libraries), but that's not always an option.
- dsl 15y agoGood programmers don't need this.
- innes 15y agoGood programmers don't need this, like good sprinters don't need bicycles.
- mattgreenrocks 15y agoAh yes, the classic "if you haven't memorized all of the APIs and their side effects you're not a real developer" schtick.
- nih 15y agoGood programmers code in hex.
- wisty 15y agoIt depends on the stack you are working with. Need to work with a big, unfamiliar, badly documented API? Good programmers don't want to be in that kind of situation, but it happens.
- primitur 15y agoFor me, cscope+vim+ddd has all the editing/building/debugging power I need .. I think with this combination of tools I can match the prowess of any fat IDE for any degree of 'cruddy project' > 'power codebase' ..
- drivebyacct2 15y agoThe best recommendation is to make sure you're using the Sun JDK and not the GCC-GCJ. That alone will constitute a large speed up. I imagine the ram disk will give basic speed-up. Can't attest to the others though, Eclipse runs more than fast enough here.
- baconface 15y agoHow does the Sun JDK significantly outperform the GCC-GCJ?
- davideuler 15y agoGCJ is fairy slow.
- drivebyacct2 15y agoIt just does? Try installing Eclipse from the Ubuntu repos, then download it from eclipse.org and run it with the Sun JVM and Sun JDK. Tell me it doesn't scream in comparison.
- Locke1689 15y agoWhat do you mean by this? The gcj JIT is shit compared to the jdk, that's how.
- zubairov 15y agoReduce in start time does not automatically mean your IDE will work faster.
- vrotaru 15y agoAs for moving jdk instal to ramdisk, on can (ab)use the fact that in Debian/Ubuntu /usr/lib/jvm/java-6-sun is a symbolic link to /usr/lib/jvm/java-6-sun-${version}/ So create a tmpfs and mount it under /usr/lib/jvm/java-6-sun sudo mount -t tmpfs -o size=200M,nr_inodes=2k,mode=0775,noatime,nodiratime tmpfs /usr/lib/jvm/java-6-sun cd /usr/lib/jvm/java-6-sun cp -a /usr/lib/jvm/java-6-sun-${version}/* . Done. Of course, if you have more than one jdk installed, update-alternatives may be necessary
- wr1472 15y agoI couldn't get it to work with the -Xmn128m argument. It wouldn't startup with it in, without it certainly does speed up the startup time.
- davideuler 15y agocurious what's your jdk and eclipse version is ?
- hackermom 15y agoFrom what I can tell, this only speeds up Eclipse' ridiculous start-up time, or am I wrong? This doe~freeze~sn't me~freeze~an that the IDE it~freeze~self will bec~freeze~ome smooth.
- planb 15y agoShort version: Buy an SSD.
- mattgreenrocks 15y agoI love Eclipse for Java, but it seems absurd that this page even exists in the first place. I'm OK with a long startup time, but the amount of finagling I had to do in order to get the Android environment to run without hiccuping every 5 minutes is pretty ridiculous. You'd think desktop Java would move to, oh, I don't know, a model where you don't have to set the heap size like we did in Mac OS 7? It just seems archaic to sit there and try to reason how much heap space we'd possibly use ahead of time. I don't want to care about that, and shouldn't have to.
- noduerme 15y agoSome nasty script on this page crashes firefox.
- mgkimsal 15y agoI can't seem to find an 'eclipse.ini' file on my system at all. I had eclipse sts and zend studio both installed (both based on eclipse) but "locate eclipse.ini" nets me nothing. Perhaps it's config.ini? Or somewhere else these recommended changes should be made?
- shareme 15y agosts and zend rename it to something *.ini
- longlistener 15y agoGads, its unfortunate that the site hosting this article is so filled with spammy ads -- the full screen intro is acceptable, but the full screen popup is not, and having both is just nuts. I like not using adblock, so site can get some impression revenue, but sites like this continue to make me think adblock is needed.