如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
当前回答
我给了它大量的内存(在启动它的命令中添加一个- xmx开关),并尽量避免退出和重新启动它——我发现最严重的延迟是在启动时,所以给它大量的RAM可以让我在崩溃之前保持更长的时间。
其他回答
问题可能是java缓存,或者java临时文件。
打开窗口的控制面板,找到Java面板 单击“常规”页签的“设置”, 删除临时文件,并设置存储临时文件的磁盘空间 文件大小不超过10000MB。 重新启动eclipse。恢复所有验证器,您将看到IDE Eclipse的速度是正常的。
转到Windows ->首选项->验证,取消选中任何你不想要或不需要的验证器。
对于Eclipse 3.7,您使用Windows ->首选项->通用->启动和关机。
I also tuned vmargs and stuff. But what really sped up Eclipse on Windows is the "proper" configuration of the anti-virus software. You have to disable the on-demand scanning of packed files. jar files, and many files related to java are packed with PKZIP algorithm to spare space. Because Eclipse uses tons of java files, an anti-virus attempts to individually unpack and scan every one of them. So for Windows platform: turn off the on-demand scanning of packed files, otherwise Eclipse will be unusably slow. Please keep in mind, that disabling this unfortunately makes your system weaker against attacks, most of the malware use packers.
确保使用Sun JVM运行Eclipse。
在Linux上,特别是Ubuntu上,默认安装Eclipse以使用开源的GCJ,而GCJ的性能要差得多。使用update-alternatives——config java切换到Sun JVM,可以大大提高Eclipse中的UI的快快性。
我实现了一个插件来配置在运行时加载哪些特性,以提高性能并减少不同插件之间的冲突。
您可能已经在Eclipse中安装了许多特性,例如Android开发工具、C/ c++开发工具、PHP、SVN、Git和ClearCase插件。因此Eclipse很重,需要消耗大量内存,其中一些并不经常使用。
因此,您可以使用我的工具创建不同的运行时策略,例如一个包含Android、Git和基本Eclipse,另一个包含C/ c++、SVN和基本Eclipse。下一次,如果您使用的策略只有Android和Git, Eclipse将只加载指定的特性。
欢迎您试用并反馈给我。:)
该工具的名称是Equinox Advanced Configurator。