xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Auzinger, Thomas" <TAuzin...@ert.com>
Subject RE: Newbie problem with batik speed
Date Thu, 19 Apr 2007 14:01:06 GMT
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: thomas.deweese@kodak.com [mailto:thomas.deweese@kodak.com] 
Sent: Thursday, April 19, 2007 9:28 AM
To: batik-users@xmlgraphics.apache.org
Subject: Re: Newbie problem with batik speed

Hi Thomas,

"Auzinger, Thomas" <TAuzinger@ert.com> 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: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message