• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GUI performance under 1.5.0

 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


My UI goes slowly if I use jdk 1.5.0(_5), also if I recompile all with java 1.5.0 ?
The same code goes 50% faster with jdk 1.4.2.
Why ?

Regards,
Mihai
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mihai,

That is too open a question for anyone to answer.

Have you used a profiler to work out what parts of the program are taking the longest to run? It might be interesting to compare the profiling results between running the same tasks in each JVM - you may either find a bug in the JVM or libraries, or some inefficiant code.

Regards, Andrew
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Andrew,


Ok maybe I reformulate, the whole aplication goes fast enough, only the GUI render process gives me this feeling.
I got this feeling just by running the GUI once with java 1.42 and once with 1.5. When I use 1.4 and I resize a frame it goes preaty fast, the same operation under 1.5 I have this "martix" effect I move the mouse(to resize) and then the frame reacts(resizes) slowly (like the "slow motion" scenees from matrix).


Regards,
Mihai.
 
Greenhorn
Posts: 14
Netbeans IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which platform are you running on? (Win/Lin/...)
I had two really bad days figuring out what my first really really simple draft for the scjd application was doing instead drawing the swing-ui.
It looks like my program is fine, but swing is buggy, at least with windooze/ati (and not watching a movie on the desktop ;-) ) Have a look at the
Swing Bug thread. If you don't mind, please try the switch from my posting, if you experience major speedups, too.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic