4 ms·
The myth that java is slow is not a myth it is true for medium to big programs with lots of interconnections, because with the abstraction you loose control on
by pipio21 9y ago
The myth that java is slow is not a myth it is true for medium to big programs with lots of interconnections, because with the abstraction you loose control on the program behavior.
You gain in other things, like abstraction, but the penalty is enormous. We use very high level languages in house, but when we do it performance is not the priority.
Doing "Hello worlds" is not a valid debunking of anything because , guess what? printing a Hello world in a screen is a very simple operation.
We have millions of lines of code and we have done tests on just converting 20-30Ks of our c,c++ code to java and the result has been disaster: Hundreds or thousands of times slower. That's right.
In my opinion if other companies are deluded wanting to be lazy, much better for us as competitors, but children should not be intoxicated with bad advice.
My advice is do not believe me or anyone else, when in doubt just test on your own.
- sk5t 9y agoLike with any language, the level of abstraction is up to you... one could just as easily "lose control" with C++. Hundreds or thousands of times slower Java? Have you considered that the conversion was done with a weak mastery of the language or runtime? The HFT folks working in Java would be taken aback to learn the language doesn't work.