eclipse 如何让eclipse IDE构建得更快
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2880197/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to make the eclipse IDE to build faster
提问by Naruto
I am using Eclipse for development. However, it's is taking too much time to build. It hangs when the percentage of build gets to 78. It shows "refreshing workspace" several times. That eats up lots of time.
我正在使用 Eclipse 进行开发。然而,它花费了太多时间来构建。当构建的百分比达到 78 时它会挂起。它多次显示“刷新工作区”。那会占用很多时间。
How can I make Eclipse faster?
如何使 Eclipse 更快?
回答by Pakka Techie
- Increase the start-up memory as mentioned by thamaria
- Disable spell check of eclipse
- Disable the plugins which you never use it (myln etc)
- Disable auto build.
- 增加 thamaria 提到的启动内存
- 禁用eclipse的拼写检查
- 禁用您从未使用过的插件(myln 等)
- 禁用自动构建。
This link might help you
这个链接可能对你有帮助
http://pakkatechies.blogspot.com/2011/07/making-eclipse-ide-faster.html
http://pakkatechies.blogspot.com/2011/07/making-eclipse-ide-faster.html
回答by Thariama
There are many possibilities to tune Eclipse.
有很多方法可以调整 Eclipse。
First, when Eclipse is hanging up you should start Eclipse with some arguments and give it more memory. Use: eclipse -vmargs -Xms256m -Xmx1024mor even more.
首先,当 Eclipse 挂断时,您应该使用一些参数启动 Eclipse 并为其提供更多内存。使用:eclipse -vmargs -Xms256m -Xmx1024m甚至更多。
EDIT: "eclipse -vmargs -Xms256m -Xmx1024m" is the commandline command with which you can start Eclipse (well, depending on your OS). For that you either need to have eclipse in your environement path or you will have to use an absolute path to your eclipse executable file. Under Windows systems you may use for example "C:\Programme\eclipse\eclipse.exe -vmargs -Xms256m -Xmx1024m". You could f.e. create a short-cut with this command.
编辑:“eclipse -vmargs -Xms256m -Xmx1024m”是您可以启动 Eclipse 的命令行命令(好吧,取决于您的操作系统)。为此,您要么需要在环境路径中安装 eclipse,要么必须使用 eclipse 可执行文件的绝对路径。在 Windows 系统下,您可以使用例如“C:\Programme\eclipse\eclipse.exe -vmargs -Xms256m -Xmx1024m”。您可以使用此命令创建快捷方式。
Second: If possible you can use several workspaces for your eclipse projects if they are not connected to each other. When using other projects than the ones located in your actual workspace switch the workspace to the one you desire. That way eclipse does not need to load all contents at startup and will therefor start much faster.
第二:如果可能的话,如果您的 eclipse 项目没有相互连接,您可以使用多个工作区。当使用位于实际工作区之外的其他项目时,将工作区切换到您想要的工作区。这样 eclipse 不需要在启动时加载所有内容,因此启动速度会快得多。
Third: You can disable the "build workspace" Option. Go to "project" --> and uncheck "build automatically".
第三:您可以禁用“构建工作区”选项。转到“项目”--> 并取消选中“自动构建”。