how to do synchronization profiling and RepaintManager and performance issues

Discussion in 'Java' started by Dimitri Ognibene, Apr 25, 2006.

  1. Some day ago I've posted about a problem with
    javax.swing.SystemEventQueueUtilities.queueComponentWorkRequest
    and some performance problem.
    (http://groups.google.com/group/comp.lang.java.programmer/browse_frm/thread/afcd152d02c4d4cb/#)
    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
     
    Dimitri Ognibene, Apr 25, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    450
  2. Dimitri Ognibene

    profiling and synchronization issues

    Dimitri Ognibene, Apr 27, 2006, in forum: Java
    Replies:
    0
    Views:
    348
    Dimitri Ognibene
    Apr 27, 2006
  3. Eric S. Johansson

    profiling and performance of shelves

    Eric S. Johansson, Jun 22, 2004, in forum: Python
    Replies:
    0
    Views:
    314
    Eric S. Johansson
    Jun 22, 2004
  4. Sinex

    DataBase synchronization issues

    Sinex, Apr 6, 2007, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    134
    Sinex
    Apr 6, 2007
  5. Robert

    Synchronization issues

    Robert, Apr 14, 2006, in forum: Javascript
    Replies:
    7
    Views:
    115
Loading...

Share This Page