Can a Java application be as responsive as a native alternative?

In my experience, most Java applications on desktop platforms are less responsive than a similar application written in C ++ or in some other language written originally. This is understandable given that java only compiles into an intermediate language.

And due to the responsiveness here, I mean the general idea of ​​how the application responds to mouse clicks and keyboard events, slight delays between the user clicking somewhere, and the program actually redraws all the necessary things to represent the response to this click. More often than not, these delays are so small that you do not see them as lagging, but you feel that the whole application is getting a little slow.

Examples of such java applications that I think are less responsive are Azureus, Java versions of Zend studio, Eclipse, and some of my own swing-based java projects.

Is this really so? Can a Java application be as responsive as a native application? Maybe this can be compiled differently? (although you would think that if it was possible, large products like Zend studio would do it already)

+3
source share
2 answers

Java application responsiveness often boils down to poor / inefficient programming. Although the Java user interface is heavier than the one written in C / C ++, on a recent computer (the last few years or so) one should not struggle with a well-coded application.

, Java 1.6 C/++ (infact , , ).

, Java IDE, , , , - (, ), , ++ , .

, Java, , if... elseif... elseif... , .

+1

javac . JVM , (- ). GUI , .

Java 100 . .. 0,0001 . , , .

BTW: Eclipse SWT, .

+1

Source: https://habr.com/ru/post/1787550/


All Articles