[CLOSED] TreeList filterBy very slow with more than 2500 nodes

  1. #1

    [CLOSED] TreeList filterBy very slow with more than 2500 nodes

    Hi, I am loading into a treeList about 2500 nodes.

    The Tree loads fine and quickly. I am able to navigate the hierarchy node by node.

    However, as soon as I try to "filterBy" the TreeList against that tree, Chrome CPU goes at 100% and memory usage jumps at 1,8 GB locking the entire system. Reducing the # of items reduces the issue but it looks like it's exponentially slow.

       
        var textFilter = 'text';
        var re = new RegExp(".*" + textFilter + ".*", "i");
        tree.filterBy(function (node) {
            return re.test(node.data.name);
        }, {
            autoClear: true,
            expandNodes: true
        });
    Is this a known issue/limitation? Or, is it there a way to avoid this issue?

    Thank you for help.
    Cheers
    Last edited by Daniil; Oct 03, 2014 at 1:39 PM. Reason: [CLOSED]
  2. #2
    Hi @adrianot,

    Well, we have implemented filtering as optimal as we could. So, I would say it is a limitation. But not of our filtering, it is rather a limitation of a browser and its JavaScript engine:)

    Maybe, you could filter the tree on the server and rebind like in this example:
    https://examples2.ext.net/#/TreePane...h_Static_Tree/

    It should work faster, probably.

Similar Threads

  1. Replies: 2
    Last Post: Jul 15, 2013, 4:06 AM
  2. Replies: 18
    Last Post: Jan 23, 2013, 3:20 PM
  3. [CLOSED] TreePanel.FilterBy
    By Marcelo in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 28, 2011, 6:43 PM
  4. [0.8] TreePanel FilterBy
    By ararotti in forum 1.x Help
    Replies: 2
    Last Post: Jan 23, 2011, 6:07 AM
  5. [CLOSED] [1.0] TreePanel FilterBy
    By ashton.lamont in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 18, 2010, 7:04 PM

Posting Permissions