Advertisement

[java] Java+Linux = Slow

Started by April 05, 2001 09:52 PM
5 comments, last by qurob 23 years, 10 months ago
Why is Java so sloooow under Linux?
you have a crappy virtual machine, or a crappy computer.
Advertisement
I do have a crappy computer (P150), and java is slow under linux (graphics wise), but is a fair bit faster under windows. I think it''s probably just X tho''.
I''ve got a P600 and Java is definitely slower under Linux. I think Sun hasn''t concentrated on optimisation under Linux until recently, so it''ll take a while for any improvements to trickle through.
The problem is X, specifically Java doesn''t use it well. Rather than using X to draw your gui, it draws the screen in memory and then blits it to the screen. Not very efficient. Sun does recongnize it is a major problem and say they are working on it.

The fanatic is incorruptible: if he kills for an idea, he can just as well get himself killed for one; in either case, tyrant or martyr, he is a monster.
--EM Cioran

Opere Citato
"... we should have such an empire for liberty as she has never surveyed since the creation ..."Thomas Jefferson
I used to think Java under linux barked like a dog to and would hassle one of my work collegues about it as he runs linux on his system.

As I have coded my gfx intensive java progs and applets.

Then he showed me IBM''s JVM on linux (debian) and it was 10-20 times faster than any crappy sun implementation

It''s funny that suns created java but the jvm is by far the slowest!
Advertisement
Agreed, it is a swing related problem - Calculation wise Java on Linux works pretty well, but the Swing classes really don''t like X Win.

cheers,

J
// Jens

This topic is closed to new replies.

Advertisement