Results 1 to 3 of 3

Thread: Help! Upgrade Extjs from 4.2.1 to 4.2.2 performance problem

  1. #1
    Sencha Premium User
    Join Date
    Dec 2013
    Posts
    2
    Vote Rating
    0
      0  

    Default Answered: Help! Upgrade Extjs from 4.2.1 to 4.2.2 performance problem

    Hi Extjs experts,

    I am having trouble while upgrading our internal system (MVC) from Extjs 4.2.1 to 4.2.2 regarding performance in check tree panel. The purpose is that I want to loop through all the node in the tree, then where appropriate update the node's property using set method. Code runs well in Extjs 4.2.1 with around less than 1 second execution, however, in 4.2.2, performance drop down to 10 seconds. Kindly check the code in the controller as below:

    PHP Code:
    init: function(){        this.control({            'mypanel': {                loadthis.afterLoad,                scopethis,            },        });    },    afterLoad: function(storenoderecordssuccessfuleOpts){        var tree node.getOwnerTree();        node.eachChild(function(n){            this.updateCheck(treen);        },this);    },    updateCheck: function(treenode){        if(node.hasChildNodes()==true){            node.eachChild(function(child){                this.updateCheck(treechild);            },this);        }        else{            this.updateValue(node);        }    },    updateValue: function(node){        node.set('abc',true);        node.set('def',true);        node.set('ghi',true);        node.set('klm',true);    }, 
    When comment node.set(...), it runs as fast as version 4.2.1. I wonder if there is something I am wrong or node.set(...) is not optimized. Kindly help solving that.

    Many thanks and regards,

    Kien
    QSoft Vietnam

  2. See the following thread example?
    http://www.sencha.com/forum/showthread.php?274924

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    504
      0  

    Default

    See the following thread example?
    http://www.sencha.com/forum/showthread.php?274924

  4. #3
    Sencha Premium User
    Join Date
    Dec 2013
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Much better and should be acceptable. Thanks for your help.

Posting Permissions

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