Hi. I write an application called Democracy. On linux, we're using
gtkmozembed to display a major portion of our UI. We're experiencing
slowdowns on UI updates.
Specifically, for a UI update, we remove a dom element and insert a new
element in its place. Sometimes this takes 0.002s and we're very happy
to have hundreds of elements get replaced. Unfortunately, sometimes
this takes .2s and we have serious slow downs.
I haven't figured out what the difference between these two cases is,
but I suspect that in the slower cases we're redoing layout of the
display for every element we change (so I suppose twice per update,
once for removal and once for add.)
My question is how to fix this. My guess is that I might be able to
tell gecko/gtkmozembed that I'm going to be doing a whole bunch of
updates, do the updates, and then tell gecko that I'm done. So my real
question is: Where do I find an API to help me coalesce updates? Do
you think this is what's causing the slow downs we're seeing?
Thanks much,
Chris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout