Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI performance under 1.5.0

 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • 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
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Thomas Kruse
Greenhorn
Posts: 14
Firefox Browser Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic