Skip to main content

Save JVM optimizations

2 replies [Last post]
dtrehas
Offline
Joined: 2004-03-15

Ok, I know that some of you will argue for this due to the security reasons. But for some of us it is necessary to have reduced startup time and
Take a look at BEA's JRockit.
I think in the future Sun must follow this way...!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
markf
Offline
Joined: 2005-01-20

> Ok, I know that some of you will argue for this due
> to the security reasons. But for some of us it is
> necessary to have reduced startup time and
> Take a look at BEA's JRockit.
> I think in the future Sun must follow this way...!

Has Sun ever done anything to suggest that they would choose speed over security? I think it makes sense for different JVMs to focus on different things. Sun's JVM is all about being on the cutting edge , and paradoxically, rock-solid stability and reliability. Another JVM might choose a different focus, like SableVM's focus on uncompromising speed and minimal memory footprint.

linuxhippy
Offline
Joined: 2004-01-07

Well, but such especially for desktop programs this would help a lot!

Swing is a very big API, which has been heavily tuned over the past years, however it's still VERY big with thousands of classes needed even for the simplest things.

I think some reasons why java has a reputation of beeing slow on desktop are the following circumstances:

- "Cold" Java-Startup is still slow, especially on non-high-end machines.

- JITing results are thrown away after each run, so every time the code has to be optimized again. This gives especially for desktop/swing apps the feeling of a slow, sluggish application.
Caching can be done, JRockit and .NET (very good caching!) show the right direction...

-higher footprint:
1.5 was the first release where footprint reduction was really important. However the "shareable" memory (shared libraries) grows each release - A simple java-1.5 swing apps has a 10x as big "shareable" are than netscape-4.7 running the same app as applet!

Please keep working on these issues!

lg Clemens