Sep 25, 2014, 4:12 PM
[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.
Thank you for help.
Cheers
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]