Hi Peter, 

peterhi <[EMAIL PROTECTED]> wrote on 03/27/2007 10:57:34 AM:

> What are the do's and don'ts to ensure that updating the graphics by
> manipulating the DOM can be as fast as possible. All advices are 
welcome.

   Aside from the requirement that all changes be made in the 
UpdateManager's
thread, there are some things that can be done that may help in some 
cases.

   1) If you will be making lots of changes to a subtree/element it can be 
faster
to disconnect the tree from the document before making the changes.  This
avoids the overhead of keeping the GVT tree in synch with every change
(think about a rect where you might set up to 6 attributes to change the
rect; x, y, width, height, rx, ry).  For simple changes it is better
to do it in place (if you just change fill color for example).

   2) If anything in a used subtree is changed all of the use instances 
will
      be rebuilt from scratch.  So it's much better to disconnect change
      attach if you are modifying used content.

   3) Text is really painfully slow.  The text layout is what takes the
      most time so try to ensure what ever you do you only cause the
      text to layout once.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to