Hi, On Wed, Sep 17, 2008 at 6:36 PM, Julien Beghin <[EMAIL PROTECTED]> wrote: > Hi there, > > Tony : > >> Another way to improve performance is by: >> - whenever possible, group the things that need to be changed >> - when you want to update >> * detach that group from the DOM aka rendering tree >> * do your update (add new element, sub node, modify existing) >> * attach the group back >> * re render the DOM > > For the refresh and rendering : > My logfile only give two line corresponding to refresh and that comes from > "UpdateManagerListener.updateCompleted". > I don't know why I have only 2 "refreshes" as my canvas is supposed to be > dynamic. That is why I think that the whole loop > is taken as a single modification but I must be wrong. > When you say "detach" do you think that removing the RenderingListener is > enought ?
No, detach mean remove the node from the DOM tree. So if you could group all of them under single <g> element, you could just detach that grouping node, do your update, then attach the grouping node again. Cheers Tonny Kohar -- Sketsa SVG Editor imagine, design, create ... http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]