Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Layout.getMembers() slowness in SmartGWT 3.1 in the Hosted Mode

    SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)
    Browser: Firefox 18.0.2

    I got the following slowdown issue in the Hosted Mode after migrating to SmartGWT 3.1

    Code:
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.widgets.layout.Layout;
    
    public class TestEntryPoint implements EntryPoint {
        public void onModuleLoad() {
            Layout layout = new Layout();
            for (int i = 0; i < 10; i++) {
                layout.addMember(new Layout());
            }
            layout.draw();
    
            long now = System.currentTimeMillis();
            layout.getMembers();
            System.out.println("delay = " + (System.currentTimeMillis() - now));
        }
    }
    In the SmartGWT 3.0 the delay = 6
    In the SmartGWT 3.1 the delay = 927

    The SmartGWT 3.0 version that I used before was
    SmartClient Version: 8.2/LGPL Development Only (built 2011-12-05)

    The SmartGWT 3.1 version is
    SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)

    Is there any way to increase the performance of the getMembers() because this widely used method dramatically decrease performance of the whole application?
    Last edited by d_zahar; 6 Mar 2013, 02:31.

    #2
    This slowdown occurs only for GWT hosted mode (not in real applications) and seemingly only for certain people. Regardless, it was worked around a long time ago, get the most recent patched build.

    Comment

    Working...
    X