I stumpled into this, but if I group each of the elements, updating thousands of elements' class attributes happens almost immediately.
An example of the change... *Without grouping, updating 10,000 elements' class attributes took ~1min 30sec on my machine <line id="0" class="Highlight" .../> <line id="1" class="Thin Walls" .../> <line id="2" class="Thick Walls" .../> ...... <line id="9999" class="Highlight" .../> *Grouped each shape and updates to class are almost immediate... <g> <line id="0" class="Highlight" .../> </g> <g> <line id="1" class="Thin Walls".../> </g> <g> <line id="2" class="Thick Walls" .../> </g> .... <g> <line id="9999" class="Highlight" .../> </g> There may be some reasonable explanation for this behavior, but it seems like a bug to me. I would prefer not having to group each shape as this will significantly add to my file size, and I don't need the grouping, aside from this issue. Thanks for the help! Greg -----Original Message----- From: Greg Steele [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 11:28 AM To: Batik Users Subject: Dynamic Styling Hi, I'm having some performance issues when updating elements' styling using the class attribute. My application allows users to reassign an element's styling, but if a user updates several thousand elements, it can take minutes. I've noticed that using the style attribute, versus the class attribute, makes an incredible difference, and the updates are visible almost immediately. However, I would like to continue using the class attribute and an external stylesheet. Any ideas on how to narrow the performance gap? I'm using Batik 1.6. Regards, Greg --------------------------------------------------------------------- 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]
