1. #1
    Ext User
    Join Date
    Nov 2008
    Location
    Switzerland
    Posts
    103
    Vote Rating
    0
    googelybear is on a distinguished road

      0  

    Question Poor performance with custom widget

    Poor performance with custom widget


    Hi,

    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?

    thanks for any suggestions!

  2. #2
    Ext GWT Premium Member
    Join Date
    Jul 2008
    Posts
    101
    Vote Rating
    0
    Martin.Trummer is on a distinguished road

      0  

    Default


    +1 from me - I am also interessted in such guidelines.

  3. #3
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,241
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    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.

    2) GXT containers vs. GWT panels. GXT containers and layouts are great when laying out your applications interface. They provide precise control of your interface including area resizing. For these benefits, there is a cost. Basically, you are controlling sizes and positions via JavaScript, rather than natively by the browser. You should not rule the use of GWT panels when building GXT applications. If you are using many GXT HorizontalPanels and VerticalPanel's I would suggest you consider the GWT version of the same widgets. As the GXT version uses layouts which the GWT panels do not. But the best choise really will depend on your particular use.

  4. #4
    Ext User
    Join Date
    Nov 2008
    Location
    Switzerland
    Posts
    103
    Vote Rating
    0
    googelybear is on a distinguished road

      0  

    Default


    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
    construct/show/populate
    (here the user actually sees how the page gets built up) I would use
    construct/populate/show
    (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.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar