如何使使用Eclipse的体验更快?

例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)

我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。


当前回答

Windows用户:

If you go to Task Manager, choose the eclipse application, and click on the little arrow next to it, you will usually just see one sub-process appear below "eclipse.exe". However, in my case, if you have multiple instances of "Java Platform SE Binary", then end all of them. For some reason, I had three of these running in the background, even though I wasn't currently running any projects. Nevertheless, this will boost performance back to the way it likely was when you first installed eclipse on your computer.

如果更改后您不能再运行项目,那么尝试重新启动eclipse。

其他回答

如果您因为工作等原因没有绑定到Eclipse,您需要的某些插件功能只能通过Eclipse使用等等;那么一个可能的策略就是完全摆脱Eclipse。这将极大地加快速度。

您可以切换到任何其他IDE或开发环境,以满足您的需要。NetBeans就是一个例子。一些提议的加速也适用于NetBeans,或任何其他IDE。

一个直接应用于Linux的例子是尽可能多地移动到tmpfs挂载。在NetBeans中进行Java开发时,我将Java文档和源代码移到了tmpfs挂载中,这极大地提高了性能。

同样,在c++开发过程中,如果可能的话,我将确保整个源代码树都在我的tmpfs挂载中。虽然我还没有对构建性能进行广泛的基准测试,但在合理大小的代码库(几百个源文件+头文件)上进行了一些测试,结果导致编译时间减少了50%。

请记住,使用此方法时,您的数据在断电期间不会持久。为了解决这个问题,可以创建一个脚本,将tmpfs挂载到某个备份目录,并将该脚本添加为每分钟运行一次的cronjob。

在Windows 8上。 打开控制面板。找到Windows Defender。进入设置 排除Spring/Eclipse和工作区所在的所有文件夹

Eclipse会延迟加载插件,大多数常见的插件, 比如Subclipse,如果你不使用它们,就不要做任何事情。 它们在运行时完全不会降低Eclipse的速度,而且它 不能帮你让他们失效。事实上,Mylyn被展示过 在正确使用Eclipse时减少内存占用。

我运行Eclipse时使用了大量的插件,但没有任何性能 罚点球。

Try disabling compiler settings that you perhaps don't need (e.g. the sub-options under "parameter is never read). Which version of Eclipse are you using? Older versions were known to be slow if you upgraded them over and over again, because they got their plug-ins folder inflated with duplicate plug-ins (with different versions). This is not a problem in version 3.4. Use working-sets. They work better than closing projects, particularly if you need to switch between sets of projects all the time.

使用-Xmx不仅需要增加内存 开关,这也是烫发的大小。我认为 在Eclipse 3.4中解决了这个问题。

转到Windows ->首选项->验证,取消选中任何你不想要或不需要的验证器。

对于Eclipse 3.7,您使用Windows ->首选项->通用->启动和关机。

我实现了一个插件来配置在运行时加载哪些特性,以提高性能并减少不同插件之间的冲突。

您可能已经在Eclipse中安装了许多特性,例如Android开发工具、C/ c++开发工具、PHP、SVN、Git和ClearCase插件。因此Eclipse很重,需要消耗大量内存,其中一些并不经常使用。

因此,您可以使用我的工具创建不同的运行时策略,例如一个包含Android、Git和基本Eclipse,另一个包含C/ c++、SVN和基本Eclipse。下一次,如果您使用的策略只有Android和Git, Eclipse将只加载指定的特性。

欢迎您试用并反馈给我。:)

该工具的名称是Equinox Advanced Configurator。