Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   how to do synchronization profiling and RepaintManager and performance issues (http://www.velocityreviews.com/forums/t153355-how-to-do-synchronization-profiling-and-repaintmanager-and-performance-issues.html)

Dimitri Ognibene 04-25-2006 09:09 AM

how to do synchronization profiling and RepaintManager and performance issues
 
Some day ago I've posted about a problem with
javax.swing.SystemEventQueueUtilities.queueCompone ntWorkRequest
and some performance problem.
(http://groups.google.com/group/comp....152d02c4d4cb/#)
My doubt is that the system spend too much time in symchronization
problems.
Someone suggested that it can be all the repaint stuff, but I've tried
to reduce it...(the paint component method in the reduced version is
something like
{ super.paintComponent..
draw an oval}
while in the complex versions is {
{ super.paintComponent..
draw 400 lines
draw 400 oval
}
and the first one takes the 20% of resources while the last the 40%

Moreover the time spent in the paint method is less and the repaint
manager should be decoubled from the component...
so how can I do a better profiling of the system?
I was thinking to override the repaint method and using directly the
invoke later paint..
but I'd like that the new method would be able to merge more call to
repaint in only one paint.. if the last paint hasnt stopped...

I hope that this info will sufficent, otherway askme
Thanks to all
Dimitri



All times are GMT. The time now is 04:26 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.