如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
当前回答
除了为内存使用配置eclipse.ini之外。我已经通过“启动和关闭选项”进行了配置。我的月食现在燃烧得很快。
其他回答
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.
使用标准插件加速Eclipse的唯一真正方法是为其提供更多内存,在某些情况下还可以访问更快的存储空间/碎片整理的硬盘驱动器。
除此之外,在性能方面可以做的不多:大多数标准插件都没有持续的运行时成本,即使Mylyn也相对较快。
升级到您机器上支持的最新JVM也会有所帮助。
有些人会降级到较旧的Eclipse版本以获得更好的性能。使用Eclipse经典版而不是官方发行版可能也有意义。
在特殊情况下,性能差可能是由于损坏了h2或nwire数据库。有关更多信息,请阅读加速Eclipse PDT和nWire的五个技巧。
在我工作的地方,我们依赖虚拟机来运行Debian。出于测试目的,我已经在VM上安装了另一个Eclipse版本,但如果我运行的是另一个Eclipse版本,有时会产生冲突。有一个两个Eclipse版本共享的共享文件夹。有一次我不小心让Debian Eclipse安装在后台运行,结果导致数据库文件损坏。
虽然与Eclipse没有直接关系:
如果你运行的是Windows 7(可能还有Windows Vista),如果你的东西在默认的位置——你的主文件夹里,一定要禁用工作空间文件夹的文件索引。Windows默认会索引你主文件夹中的所有内容,这对你的工作空间来说是一种浪费。(右键单击资源管理器中的工作区文件夹,属性->高级。)
也试试这个,它会提高性能:
清理索引-{工作区 路径}.metadata.plugins \ org.eclipse.jdt。核心清理历史—— {工作区 路径}.metadata.plugins \ org.eclipse.core.resources.history
清理上述文件夹不会影响项目文件。