Results 1 to 4 of 4

Thread: ExtJS 6.5.2 performances

  1. #1
    Ext JS Premium Member
    Join Date
    Sep 2009
    Location
    Italy
    Posts
    411

    Default ExtJS 6.5.2 performances

    Hi everybody,
    I have performances issues using ExtJS 6.5.2

    In the past we have developed a large application using Ext JS 3.4

    This application gets a JSon from server and using this json build the Windows and all its content dynamically.
    That means which in JSon there are all the information needed to create all the Ext components.
    And the performances using ExtJS 3.4 were fine.

    Right now we have done the porting to Ext 6.5.2 and the performances are slow.
    Each window takes about 1 second more then 3.4 to render

    Analyzing the performances using Chrome I've see which most of all time is spend in "scripting" part

    Just to give you and idea of the scripting time comparing the same application using different windows:

    The time are in milliseconds
    Ext 3.4 Ext 6.5.2
    330 950
    950 1813
    440 1120

    and so on

    The our javascript code to parse json and build the window is rather the same of the 3.4 version,
    was revisited only to instantiate the new components,
    And In Chrome dev tools I do not see any issue related to the our code

    So I really do not imagine how can I might improve the performances.
    And, above all, I am very surprised about these results: in short my idea was that 6.5.2 might performs better of 3.4, but probably not.

    Does someone has any suggestion?
    Please, I'd like to know the your opinion about it.

    Thanks in advance for the your answers

  2. #2
    Ext JS Premium Member
    Join Date
    Sep 2009
    Location
    Italy
    Posts
    411

    Default

    Hi, Ive just developed two very simple fiddles to give you the idea:

    Using ExtJS 3.4 takes 280 ms of scriptiong time, using ExtJS 6.5.2 takes 980 ms of scripting time, so ExtJS 6.5.2 is three (300%!!!) time slower
    Big surprise, right?

    The Ext 3.4 fiddle
    https://fiddle.sencha.com/#view/editor&fiddle/2a02

    The Ext 6.5.2 fiddle
    https://fiddle.sencha.com/#view/editor&fiddle/2a01

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    599
    Answers
    35

    Default

    Dear dtex-lab,

    you are not comparing the same things in your fiddles.
    https://fiddle.sencha.com/#view/editor&fiddle/2amp

    this is more likely to be even with what you are doing in ExtJs 3.4

    I just did a rewrite of a 3.4 app to a 6.5.2 app and I would say you have to use the right components.

    Take a look at what you are doing in 6.5. The time to build the window is rather low. Building 500 components takes almost no time (just move the timeend before the show command).
    But showing the item takes the time. You are pushing a long list of rather complex items into the DOM.
    Lists with a lot of items should be handled with Grids.

    Further you could speed up things, by using data-binding on the fields. That way you will eaily beat the time it took in 3.4.

  4. #4
    Sencha Premium User
    Join Date
    Apr 2011
    Location
    New Zealand
    Posts
    716
    Answers
    45

    Default

    Try:

    Ext.suspendLayouts();
    vWin.show();
    Ext.resumeLayouts();

    Reduces time by 50 - 100ms in Firefox

Similar Threads

  1. Ext JS 5 performances with data grid & IE9
    By aaugen in forum Sencha Ext JS Q&A
    Replies: 3
    Last Post: 28 Apr 2015, 10:43 AM
  2. Performances when loading remote ressources
    By senchax in forum Desktop Packager
    Replies: 2
    Last Post: 24 Aug 2013, 8:55 AM
  3. 4.1 Beta Performances
    By paipai in forum Ext: 4.x Beta
    Replies: 22
    Last Post: 20 Jan 2012, 4:48 AM
  4. Ext 4.0.0/4.0.1 Grid Performances
    By thecoder in forum Ext: Discussion
    Replies: 9
    Last Post: 8 Jun 2011, 9:58 AM
  5. poor performances
    By kallou in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 21 Aug 2007, 7:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •