Hi folks, I work with an app that builds hundreds of widgets and obviously has a performance hit. I'm well aware of performance improvements of the sort of: reduce the number of widgets, use directly html, use cell widgets, etc, however those paths are not helpful for me.
I'm just interested in making widget creation even faster. There's well known techniques using DocumentFragment or Range.createContextualFragment: https://developer.mozilla.org/en/docs/Web/API/DocumentFragment https://developer.mozilla.org/en-US/docs/Web/API/range.createContextualFragment http://ejohn.org/blog/dom-documentfragments/ I noticed that in the GWT code and noticed that whenever creating widgets using UiBinder, GWT creates a hidden div that is directly attached to the DOM: https://gwt.googlesource.com/gwt/+/master/user/src/com/google/gwt/uibinder/client/UiBinderUtil.java (line 84) So apparently operations are not on an unattached DOM element which theoretically makes thing slower. I tried to attach it to a DocumentFragment instead and while it seems that I'm seeing a small performance improvement, it's still hard to prove as the numbers that I get still vary a lot. Anyway, my question for you guys is that if you know of attempts to improve the speed of widget creation and what approaches have been taken? Thanks! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.