Why do individuals still claim Java is slow-moving?

For a long period of time in SO and also in various other areas Java has the online reputation of being slow-moving. From jokes to many comments concerned and also solutions, individuals still think Java is slow-moving based only on experience with it in the 90s.

This is my concern: we have disproved (most) of the factors that individuals think Java is slow-moving. Beyond tiny points, Java is rather quickly.

So why is it that individuals still reject to think Java is quickly currently? Is it component of their way of thinking that anything thats not C/C++ is slow-moving? Is it due to the fact that individuals do not check out time? Is it due to the fact that individuals are simply prejudiced?

0
2019-05-07 00:27:22
Source Share
Answers: 13

Simple, approved Java code often tends to be on the same level with or faster than straightforward, approved C/C+npls/ D code. Straightforward, approved code often tends to execute a great deal of memory appropriations needlessly, not be specifically tuned to any kind of CPU style, not have lots of reduced degree optimizations done to it, etc Java is HotSpot GC is absolutely nothing except impressive, and also the VM optimizations often tend to be far better than what a fixed compiler can do.

On the various other hand, if you actually require performance and also agree to hand - song things to get it, C/C+npls/ D gives much more possibilities for this. You can not make use of inline assembler in Java. You can not make use of unclean type punning methods to deal with drifting factor numbers as selections of little bits. You can not make use of personalized memory monitoring systems that might be much faster than the GC for your details usage instance. You can not allocate virtually as much on the pile in Java as in C/C+npls/ D. In Java the only means to get anything about equal to greater order features is with user interfaces and also runtime binding. In D and also (I assume, remedy me if I'm incorrect) C+npls, you can pass features to layouts, permitting binding to take place at compile time without loss of adaptability.

0
2019-12-03 02:10:45
Source

This inquiry operates incorrect properties : where it counts, Java is still slow-moving. Where it counts are calculation - hefty formulas on huge information collections. Provided, these can be maximized, occasionally to be on the same level with C/C+npls code, yet just at the price of modularity and also genericity. Reliable C+npls code can be made to be common and also useful as a basic - objective collection. Java code can not. Simply consider the greatly maximized Array.sort method, which makes use of various executions for all basic types, and also whose object version is still much slower than C+npls' common sort due to the fact that these things need to send off equal rights contrasts dynamically.

Provided, in the nick of time optimizations as executed by the HotSpot engine can in fact forecast the target of these digital telephone calls and also effort inlining. Yet this is still slower than the straight inlined call that is sent off inside C+npls' sort method.

A previous coworker of mine has actually done relative standards of a trouble on massive information collections ( q - gram checking making use of vibrant forms) with a templated C+npls execution and also an object - oriented Java execution. The Java code was orders of size slower than the C+npls code.

Certainly this is contrasting apples with oranges. Yet the factor is that the Java execution was the most effective feasible execution (in regards to performance, offered the level of modularity needed for a collection), therefore was the C+npls execution.

However, the benchmark information is not openly readily available yet others have actually located comparable numbers when contrasting the expenses of runtime abstraction. As an example, Scott Meyers creates in Effective STL concerning the expenses of C's common qsort function :

C+npls's type basically constantly shames C's qsort when it involves speed up. [ ] At runtime, type makes inline phones call to its contrast function while qsort calls its contrast function via a reminder. [ ] In my examinations on a vector of a million increases, [type ] added to 670% faster

0
2019-12-03 01:55:35
Source

@bigown "Why do individuals still claim Java is slow-moving?"

Due to the fact that they are foolish. Due to the fact that they have no job experience, yet assume they are the living manifestation of Dikjstra or the 2nd resulting Linus Torvald, oh I dunno. The factors for claiming such a deferred point are numerous, yet generally stupidness, brainless subjective fanboyism, and also psychological focus - whoring appear to be behind them.

Allow is disect this to make sure that you can see the fact of what I've simply claimed over:

First, what is slow-moving, in what context, wherefore, under what problems, with what engineering/scientific/business objective (for claiming tehe it draws is not one of them.) Anybody that claims "X is slow-moving" for any kind of modern technology X, or merely "X is Y" where Y is some sort of adverse declaration, without addressing any one of the inquiries over need to be disregarded as a fool. Declarations like that do not have an area in design. In national politics and also adolescent chatroom possibly, yet out design.

Second, a lot of these illinformed fools sob concerning Java being slow-moving due to the fact that ZOMG, their eclipse takes for life to discharge up (gee, load things with all the plug ins, and also presume what takes place.) A lot of these fools do not also recognize just how to tune the jvm for eclipse to run rapid (or for any kind of Java application for that issue). That is, they have no idea concerning performance adjusting, which is a fact not simply for Java, but also for any kind of non - unimportant system, be it hardware or software program. So right there, they deactivate themselves for any kind of technological legitimacy in making such brainless declarations.

Third, allow is consider what the mass of Java growth is for: backside OLTP most importantly ; surveillance systems coming 2nd. Either sort of system is planned to run in collections, and also to run nonstop for weeks otherwise months. Does it actually matter then that your little eclipse or plaything application takes a min or 2 to load when the objective of REAL Java applications is to compete extensive amount of times? Context, individuals, context.

Last but not least, the foundation of OLTP on Google and also Ebay work on Java. I would certainly take that as an evidence by opposition that Java is not slow-moving (at the very least for problems that matter, except little plaything experiments, standards and also unverifiable annecdotal proof done especially for the objective of claiming "tehe X is slow-moving, it draws."

There is design, and also there is fanboyism. Presume which group declarations like those come from?

0
2019-05-31 03:10:48
Source

Slow contrasted to what? I'm considering transforming from average Ruby to JRuby (Java based ruby) due to the fact that I've heard it is much faster.

0
2019-05-31 03:05:16
Source

One factor is that individuals trust fund what others claim as opposed to what they see .

According what I was informed when I first began shows, Java is "slower" than C+npls, and also reason that Java can be made use of is due to the fact that it is "hassle-free and also less complicated". It is really generally thought that Java brings Safety and also ease, at the price of performance. Also when later on C# is designed individuals think it is much faster than Java due to the fact that it is "indigenous".

Yet the fact individuals see without noticing it, is that, overshadow, the IDE that is constructed with Java, is definitely the FASTEST IDE in class. I've made use of almost all major stream IDEs, those from MS and also GNU, Borland ..., eclipse is the outright king, of IDEs, greatly as a result of it is quickly.

An additional factor is its lengthy start up time .

Java is not ideal for creating a little application that remain in system tray, eats a little memory, popup a dialog advising you to pause ; or a note pad that you make use of to open a message documents, read it and also close it. It needs to be made use of on something BIG, like an internet server that is constantly there, make maximized use you calculating source, reply to numerous demands every hr. Or an IDE like eclipse that take care of hundreds of work space documents. You do not recognize you Java application is quickly till it has actually competed at the very least numerous hrs, I think.

0
2019-05-18 05:00:55
Source

Circa 1997 I made use of a HP Vectra VE (200 MHz) and also Windows 95. The majority of applications ran really quickly on this, yet after that I attempted a couple of applications created in Java (IDEs, if I remember appropriately). They were really slow-moving, at the very least the GUI components of them. They took long period of time to start, and also the GUI components (as an example food selections) were not really receptive - - there were hold-ups in the aesthetic responses. Additionally, given that Java GUI applications had (has) an instead distinct appearance, I found out to associate this appearance (and also Java) with inadequate performance.

0
2019-05-11 16:55:07
Source

Because it takes a generation to change peoples perceptions about a product

It has absolutely nothing to do with just how rapid Java comes to be. In individuals's minds Java is a const identifier related to words 'slow-moving'. There is little bit, absolutely nothing you or Oracle can do concerning it.

Simply enjoy that Oracle hasn't damaged the Java shows society (yet) by doing anything rash or stupid. Like billing too much licensing prices to utilize it. Or filing a claim against individuals based upon software program licenses formerly possessed by Sun. : :sigh ::

I despise to be the cynic below yet, unless Oracle and also Google resolve the Java battle on wonderful terms, or Google is compelled to acquire Java and also makes it a 'correct' open resource system, Java is well on it's means to being the child on the play ground that has lice. IE, no person will certainly intend to touch it with a 20ft post.

Keep in mind : Just to be clear, when I claim generation I'm chatting in individuals terms not computer system terms. IE, till individuals that hold that assumption die of old age or changed by a more youthful generation the assumption will certainly apply. Assume in regards to 5 years not 5 years.

0
2019-05-11 16:26:47
Source

To include a pointless coin, I locate that Java webapps usually have lengthy start-up and also feedback times, where it appears to me that Python or Ruby would certainly have done much better.

I do make use of Eclipse for a lot of my shows, and also I have to claim that Java is equally as rapid as anything else, otherwise faster running in your area and also "standalone".

0
2019-05-10 11:18:32
Source

Another factor for "sluggishness" of Java is the 64bit runtime.

I've listened to some individuals whine that Java is really slow-moving for them on 64bit computer systems. As it ends up, 64bit Java runtime makes use of web server JVM which assembles entire program prior to beginning.

HERE is description why 64bit VM begins slower.

As an example on Windows :

C:\> java -version  
java version "1.6.0_21"  
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)  
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)  
0
2019-05-08 14:43:47
Source

I would certainly claim it's because when individuals first experienced it, it was slow-moving. Based upon that, they created an impact of it. That impact is not likely to transform if they do not utilize it, and also they do not utilize it as a result of that impact - it's a vicious circle.

I have to confess, I felt that Java was slow-moving, and also of course, that was from my previous direct exposure to it. I've currently gone on to various languages and also have actually had exceptionally minimal direct exposure to Java ever since. Subsequently, my point of view hasn't transformed a lot.

0
2019-05-08 01:25:24
Source

It's the applications. As you keep in mind, we have actually confirmed, over and over again, that in contrived circumstances Java code can fulfill or perhaps defeat the performance of supposed "performant" languages like C, C++, Lisp, VB6, or JavaScript. And also when offered with such proof, the majority of rational, broad-minded challengers will certainly hang their heads in embarassment and also assurance never ever once more to spread out such aspersion.

... yet after that, they discharge up Eclipse, or NetBeans, or Guiffy, or enable the Java assistance in their internet browser, or attempt to run an application on their favored attribute phone. And also they await it to come to be receptive ...

... and also wait ...

... and also wait ...



... and also wait ...







... and also wait ...











... and also ...




... what did I assure never ever to do once more? Sorry, have to have dropped off ...

0
2019-05-08 01:02:34
Source

TMHO, this is as a result of the moment required to start the VM in the internet browser. If an application begins gradually, individuals will just bear in mind that. Due to the fact that, long beginning time is actually aggravating. Actually. Among my associate informed me that he does not make use of Firefox due to the fact that it is also slow-moving. (?!?). Yet, Yes, Ok, on home windows, Firefox takes a massive quantity of time to turn up. According to him, this application is slow-moving, he made his mind concerning the basic rate of it.

0
2019-05-08 00:58:00
Source

Because it is slow-moving ... in some applications. Desktop computer applications need to be receptive initially and also the start-up expenses counts as slow-moving.

On the various other hand if you run a web server it does not matter if there is some home heating (JIT evaluation and also collection ) - you do it as soon as in blue moon so a lot of the moment it can not be taken into consideration totally slow-moving.

0
2019-05-07 22:14:04
Source