I've created a custom widget which takes quite a long time until it gets displayed (~5seconds)
The widget is based on nested VerticalPanels and HorizontalPanels. It subclasses LayoutContainer and the widget structure is created in the constructor.
Are there some general rules on how to create fast widgets or what to avoid (common pitfalls etc.)?
Would it be better to subclass the recently released Composite class?
It is hard to comment on your particular performance numbers without seeing the code.
I would recommend looking at 2 things:
1) How many DOM elements are being created by your custom component. Creating elements is expensive, so the more complex element structure, the longer execution takes.
yeah I know - unfortunately I cannot publish the code publicly.
It appear to be faster when I populate the widget with data (with data retrieved from a server) before showing it
so instead of the sequence
(here the user actually sees how the page gets built up) I would use
(the user sees the complete page when it gets displayed).
thanks for the info about the vp/hp, I'll try to replace my gxt vp/hp with the gwt version and see how this works.