I have JIT disabled and this had no effect. On pass 1, I change the colors before the canvas is displayed.
On pass 2, I change the colors (different colors as pass 1) again via the same method calls. One would think that it would render faster after this call since the same methods were called in pass 1, although the only difference this time is that the canvas is visible. Only after the 3rd pass it is much quicker. Seems like the performance may be related to the visibility status of the canvas. Any other recommendations. Thanks for your help. -----Original Message----- From: Tonny Kohar [mailto:[EMAIL PROTECTED] Sent: Sunday, March 09, 2008 11:55 PM To: [email protected] Subject: Re: Update Performance Faster after First Update Hi, On Sat, Mar 8, 2008 at 1:40 AM, Marshall Keith J NPRI <[EMAIL PROTECTED]> wrote: > Batik Users, > > I'm updating multiple rectangle fill colors on the canvas after the press of > a button. The first time I perform the update I noticed that the changes are > considerably slow. Anytime after the first update, it is significantly > faster. Any thoughts? Thanks. > If I am not wrong, it is the feature of java lazy loading, which only load the things it needs. The advantages of this lazy loading, it make the application seem faster and use less resources. There is also java feature JIT which runtime compile/optimize certain class/function/procedure, if those stuff is called frequently enough. So applying the above, the first time is always slower (not necessarily slow, but slower, slower != slow) then subsequent request. Cheers Tonny Kohar -- Sketsa SVG Editor imagine, design, create ... http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
