Jorg Heymans wrote:
What is the quickest way of either inserting a new node (say <g> with a
bunch of paths) into a document or replacing an existing node ?
I have found that under similar circumstances, replaceChild() is about
10% quicker than appendChild(), but for my application it still takes
about 5 seconds to dynamically add it.
Sounds like it's a lot of geometry. Do you know if the time is
taken in the add or in the repaint (you should be able to
print something after the add and then get a feel for when the
repaint finishes)? BTW it is much better to do what you are doing and
add all the geometry at once.
BTW I'm surprised that there is any significant difference in
the performance (I would suspect the difference is just noise -
GC sneaking in or something).
I take it that the rendering time scales with the number of nodes to
add? What are the rendering time parameters here ?
Yes, rendering time scales with the number of nodes. Lots of
things, effect rendering time. Filter effects, Complex fills
(patterns, gradients), opacity (not so much stroke/fill opacity),
and text are probably the biggest offenders for Batik.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]