Java IntelliJ IDEA 与 NetBeans 的性能影响?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48332873/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 02:49:12  来源:igfitidea点击:

Performance impact of IntelliJ IDEA vs NetBeans?

javaeclipseintellij-ideanetbeansperformance-testing

提问by Rolin Azmitia

So, recently I've resumed my studies (2nd year HS) and in this year we'll be using Java as the primarily language for everything; I've been using Java independently for about a year and I love IntelliJ, however our teacher just refusesto even take a look at it, just demands to use NetBeans, regardless of the several technicalarguments I've had with her.

所以,最近我恢复了我的学习(HS 2 年),今年我们将使用 Java 作为一切的主要语言;我已经独立使用 Java 大约一年了,我喜欢 IntelliJ,但是我们的老师就是拒绝看它,只是要求使用 NetBeans,不管我和她有过几次技术争论。

She argues that it's because the computers are fairly old and crappy (which they are) but with that in mind, is that really a meaningful argument to give? My ASUS laptop can handle IntelliJ pretty well with 16GB of RAM, as you can see here:

她认为这是因为计算机相当陈旧和蹩脚(它们确实如此),但考虑到这一点,这真的是一个有意义的论点吗?我的华硕笔记本电脑可以用 16GB 的 RAM 很好地处理 IntelliJ,正如你在这里看到的:

task manager

任务管理器

However, due to some weird installation problems I can't personally test NetBeans (yuck), and I'm not a fan of downgrading my RAM to 4GB (The capacity of the school's computers).

但是,由于一些奇怪的安装问题,我无法亲自测试 NetBeans(糟糕),而且我不喜欢将 RAM 降级到 4GB(学校计算机的容量)。

So my question is, would the performance impact of IntelliJ be substantial enough to justify the use of NetBeans, even though IDEA it's (In my opinion) a much better IDE? And if so, wouldn't something lighterlike Eclipse make more sense?

所以我的问题是,IntelliJ 的性能影响是否足以证明使用 NetBeans 是合理的,即使 IDEA(在我看来)它是一个更好的 IDE?如果是这样,像 Eclipse这样更轻的东西不是更有意义吗?

采纳答案by howlger

There is no straightforward answer to your question:

你的问题没有直接的答案:

IntelliJ IDEA is a great Java IDE. Its main advantage over NetBeans and Eclipse is the better support for Android development (Android Studio which is built on IntelliJ IDEA became the official IDE for Android in 2013). In contrast to Eclipse, IntelliJ IDEA and NetBeans offer a more comprehensive range of out-of-the-box functions that making it easier for beginners. There are more plug-ins available each for IntelliJ IDEA and for Eclipse than for NetBeans. These are just some of the advantages of IntelliJ IDEA.

IntelliJ IDEA 是一个很棒的 Java IDE。它相对于 NetBeans 和 Eclipse 的主要优势是对 Android 开发的更好支持(基于 IntelliJ IDEA 的 Android Studio 于 2013 年成为 Android 的官方 IDE)。与 Eclipse 相比,IntelliJ IDEA 和 NetBeans 提供了更全面的开箱即用功能,使初学者更容易使用。IntelliJ IDEA 和 Eclipse 的插件比 NetBeans 多。这些只是 IntelliJ IDEA 的一些优势。

IntelliJ IDEA is a commercial product (although some parts are open source, but development is not driven by the community). For those who pay for a Java IDE, the higher memory requirements will probably not be a problem. Unlike Eclipse and NetBeans, IntelliJ IDEA's Git integration is realized by delegation to the Git command line (instead of using JGit), which has also some disadvantages. By default, files are automatically saved, but compiled before starting. Some like that, others prefer incremental compilation on saving as in Eclipse. Which one is the best Java IDE depends on the user's usage and preferences.

IntelliJ IDEA 是一个商业产品(虽然有些部分是开源的,但开发不是由社区驱动的)。对于那些为 Java IDE 付费的人来说,更高的内存要求可能不是问题。与 Eclipse 和 NetBeans 不同,IntelliJ IDEA 的 Git 集成是通过委托给 Git 命令行来实现的(而不是使用 JGit),这也有一些缺点。默认情况下,文件会自动保存,但会在启动之前进行编译。有些人喜欢这样,其他人更喜欢在 Eclipse 中保存时进行增量编译。哪一个是最好的 Java IDE 取决于用户的使用和偏好。

To answer your question, the higher memory requirement at only 4 GB of available RAM (your screenshot shows 637.3 MB / 4096 MB = 15.6 %only for the (idle?) IDE) is a valid argument against IntelliJ IDEA (especially when you consider that the memory requirements will continue to increase with each new version), but not an argument for NetBeans. The decision was certainly made not only because of this single argument. I would probably have given the arguments a different weighting and come to a different decision as your teacher.

为了回答您的问题,仅 4 GB 可用 RAM 的更高内存要求(您的屏幕截图637.3 MB / 4096 MB = 15.6 %仅显示(空闲?)IDE)是反对 IntelliJ IDEA 的有效论据(尤其是当您认为内存要求将随着每个新版本),但不是 NetBeans 的参数。这个决定当然不仅仅是因为这个单一的论点。作为你的老师,我可能会给这些论点一个不同的权重,并做出不同的决定。

However, you should appreciate the teacher explaining her decision. I guess you won't convince her to revise her decision. But why not develop at home with your favorite IDE and show/review the code to/with your teacher in her favorite IDE? You would get to know the advantages and disadvantages of at least two Java IDEs. Nobody is more annoying than those guys that tell people using the wrong thing just because it's not the thing they prefer.

但是,您应该感谢老师解释她的决定。我猜你不会说服她改变她的决定。但是为什么不在家中使用您最喜欢的 IDE 进行开发,并在您的老师最喜欢的 IDE 中向您/与您的老师一起展示/代码?您将了解至少两个 Java IDE 的优缺点。没有人比那些仅仅因为这不是他们喜欢的东西而告诉人们使用错误的东西的人更烦人。

A Mac user, an IntelliJ user, and a vegan walk into a bar. How do I know? Well after 2 minutes THE WHOLE F'ING BAR KNEW!

一个 Mac 用户、一个 IntelliJ 用户和一个素食主义者走进一家酒吧。我怎么知道?2 分钟后,整个酒吧都知道了!

回答by HMD

Let's not talk about Eclipse and stick to NetBeans and IDEA. Cause I thing Eclipse is not match for these two at all! I guess It is good just for its lightness.

我们先不谈 Eclipse,还是说 NetBeans 和 IDEA。因为我认为 Eclipse 根本不适合这两个!我想这只是因为它的轻盈。

IDEA is not necessarily better IDE than NetBeans, I guess it's all about the magnitude of program you want to develop.

IDEA 不一定是比 NetBeans 更好的 IDE,我想这完全与您要开发的程序的大小有关。

Netbeans is so much more lighter, faster, more intelligent and its features for network programming are amazing.

Netbeans 更轻、更快、更智能,其网络编程功能令人惊叹。

In other hand, IDEA is truly a great IDE for developing big softwares. It is more stable, more powerful, it has more functionality, and it has plugins that you can use without any worries.

另一方面,IDEA 确实是开发大型软件的绝佳 IDE。它更稳定、更强大、功能更多,并且它有插件,您可以毫无顾虑地使用它。

As someone who has used both of them, I think Both are great, but I prefer Netbeans for light programs.

作为两个都用过的人,我认为两者都很棒,但我更喜欢 Netbeans 的轻型程序。