如何加速 Eclipse? [英] How can you speed up Eclipse?

查看:35
本文介绍了如何加速 Eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更快地体验 Eclipse?

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

我没有为 Mercurial 使用插件,而是配置了 TortoiseHG 作为外部工具.

Instead of using a plugin for Mercurial, I configure TortoiseHG as an external tool.

推荐答案

对 Eclipse 速度影响最大的三个因素是:

The three most influential factors for Eclipse speed are:

  • 使用最新版本的 Eclipse(2020-06 至 2020 年 6 月 26 日)
    请注意 David Balažic评论(2014 年 7 月)与六年前有效的标准相矛盾:
  • Using the latest version of Eclipse (2020-06 as on 26 June 2020)
    Note that David Balažic's comment (July 2014) contradicts that criteria which was working six years ago:

相同"Indigo (3.7.2) SR2 中的工作区在 4 秒内加载,Kepler SR2 (4.3.2) 中的工作区在 7 秒内加载,Luna (4.4.0) 中的工作区在 10 秒内加载.都是 Java EE 包.较新的版本有更多的捆绑插件,但趋势仍然很明显.(相同"工作区我的意思是:使用相同的(额外安装的)插件,从版本控制检出相同的项目).

The "same" workspace in Indigo (3.7.2) SR2 loads in 4 seconds, in Kepler SR2 (4.3.2) in 7 seconds and in Luna (4.4.0) in 10 seconds. All are Java EE bundles. Newer versions have more bundled plugins, but still the trend is obvious. (by "same" workspace I mean: same (additionally installed) plugins used, same projects checked out from version control).

  • 使用最新的 JDK 启动它(在撰写本文时为 Java 14,这不会阻止您使用您想要的任何其他 JDK 在 Eclipse 项目中进行编译:1.4.2,1.5、1.6 岁以上...)

    • Launching it with the latest JDK (Java 14 at the time of writing, which does not prevent you to compile in your Eclipse project with any other JDK you want: 1.4.2, 1.5, 1.6 older...)

        -vm jdk1.6.0_10jreinclientjvm.dll
      

    • 配置 eclipse.ini(参见 这个问题的完整eclipse.ini)

        -Xms512m
        -Xmx4096m
        [...]
      

    • Xmx 参数是 Eclipse 将获得的内存量(简单来说).使用 -Xmx4g,可以获得 4 GB 的 RAM 等.

      The Xmx argument is the amount of memory Eclipse will get (in simple terms). With -Xmx4g, it gets 4 GB of RAM, etc.

      注意:

      1. 参考jvm.dll有好处:

      • 启动画面很快就会出现.
      • 进程列表中的 Eclipse.exe 而不是 java.exe.
      • 防火墙:Eclipse 想要访问 Internet 而不是 Java.
      • 窗口管理品牌化问题,尤其是在 Windows 和 Mac 上.
      • 十二月2020 年,Udo 符合 在评论中

        Dec. 2020, Udo conforms in the comments

        从 4.8 (Photon) 版本开始,每个版本都有稳定的速度提升.
        主平台在每个版本都进行了优化,以加快加载速度,为深色主题启用更多功能,并为 Java 开发工具的较新 Java 版本添加更多功能.
        特别是在最近的 3 个版本中,启动时间增加了很多.使用最新版本的 Eclipse 2020-12 应该会显着增加启动时间.

        From version 4.8 (Photon) an up there was a steady speed gain after each version.
        The main platform was optimized every release to load faster, enable more features for the dark theme and to add more features for newer Java versions for the Java development tools.
        Especially with-in the last 3 versions the startup time was increased a lot. There should be a significant increase in start-up time with the newest version of Eclipse 2020-12.

        根据我的经验,每个新版本的启动速度都要快得多.
        但是:仍然有一些插件没有遵循Eclipse API的新使用方式,因此启动仍然很慢.
        由于从 Eclipse 版本 2020-09 开始更改为 Java 11 作为最低运行时版本,至少核心系统使用了 JVM 的更新功能.其他插件的提供者有责任升级到更新的 API 并使用现代 CPU 的全部功能(例如并发编程模型).

        In my experience it started a lot faster with each new version.
        But: There are still plug-ins which do not follow the new way of using the Eclipse API and are therefore still slow to start.
        Since the change to Java 11 as the minimum runtime version starting from Eclipse version 2020-09 at least the core system uses the newer features of the JVM. It is up to the providers of the other plug-ins to upgrade to newer APIs and to use the full power of modern CPUs (e.g. concurrent programming model).

        这篇关于如何加速 Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆