Re: in need of swing performance advice



Hi,

I used JProfiler and tracked it down to the .validate() line.

Rgds,

Dave

Thomas Weidenfeller wrote:
Dave Brown wrote:

I've hit a point in my app when I first call .validate() when loading a new panel (it is fairly complex), it takes up to 5 seconds to load..


Attach a profiler to the application and measure where the 5 second delay happens. Once you know where it happens optimize that part.

Guesses about a performance bottleneck are almost always wrong. Even programmers with decades of experience usually get those guesses wrong. You have to measure it.

/Thomas
.



Relevant Pages

  • RE: Locating a load module, via LOAD vs ATTACH
    ... > Subject: Re: Locating a load module, ... >:>Why does LOAD find a module and ATTACH does not. ... >:>message CSV005I BLDL FAILED FOR MODULE xxxxxxxx, DCB NOT ... > Search the archives at http://bama.ua.edu/archives/ibm-main.html ...
    (bit.listserv.ibm-main)
  • Re: What is involved with upgrading 150A service to 200A?
    ... When the basement is complete I will have a three story home with approx 3000 sq ... to the people who say that I will never have that kind of demand at ... consideration the fact that you aren't pulling the entire load all the time. ... What brand 150A panel do you have? ...
    (alt.home.repair)
  • Re: Locating a load module, via LOAD vs ATTACH
    ... :>jobstep that issues an ATTACH for a load module that is in steplib. ... :>message CSV005I BLDL FAILED FOR MODULE xxxxxxxx, DCB NOT OPEN. ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: Low voltage wiring - NEC question
    ... So a load center can be ... certain amounts of working clearance in front of a panel. ... > They are very useful in retrofits as well as large houses). ... install about a half dozen new circuits on the second floor. ...
    (comp.home.automation)
  • Re: How much current to subpanel
    ... garage + central A/C + etc), but my electrician told me that it's not ... The term Sub Panel is not found in the National Electric Code. ... These panels have a main breaker and a set of main ... for such panels is to provide a main breaker and a few load breakers ...
    (alt.home.repair)