Thomas, Actually that's what's happening ... displayIDMs() calls displayItem() 12 times, there is only one Runnable. The DOM tree is updated 12 times though from within this Runnable, could this be causing the problem?
Thanks, Thomas -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 9:28 AM To: [email protected] Subject: Re: Newbie problem with batik speed Hi Thomas, "Auzinger, Thomas" <[EMAIL PROTECTED]> wrote on 04/13/2007 03:40:46 PM: > 2. Displaying the measurements (i.e. drawing about 84 lines and > 24 texts) takes about 2-3 seconds on a 3GHz dual core machine. > The method below is called 12 times: > public void displayItem(GlobalAnalysisItem ai, int beat, int height) { try { jsvgCanvas.getUpdateManager().getUpdateRunnableQueue().invokeLater(new Runnable() { public void run() { ea.displayIDMs(); } }); } catch (Exception ix) {} You shouldn't submit 12 separate Runnables otherwise the canvas will rerender the document between each runnable. Submit one runnable that calls displayItem 12 times. --------------------------------------------------------------------- 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]
