Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
XamDataTreeNode.HasChildren significant slower in 18.1 than 17.2
posted

We have a tree with 50k Elements.

Traversing the Tree and with a function similar to this results in significant worse runtime in 18.1 .

In 17.2 it finishes after about 5 seconds.

In 18.1.176 (nuget) it runs forever.

Checking the runtime with Stopwatch i found out that 99.99% of the time is spend in node.HasChildren.

"node.Nodes.Count > 0" is slow too.

        private static void FindCorrespondingNode(XamDataTreeNodesCollection nodes, object value)
        {
            foreach (XamDataTreeNode node in nodes)
            {
                if (node.HasChildren)
                {
                    FindCorrespondingNode(node.Nodes, value);
                }
            }
        }

Parents
  • 25665
    Offline posted

    Hello Jens,

    Thank you for contacting Infragistics!

    When I make a tree with 50k nodes and call HasChildren I am not experiencing long time. Can you please try updating to the latest service release of v18.1 which is 255.

    The best way for us to assist you is if you provide a small isolated sample that we can run and use for debugging locally. If you are unable able to provide an isolated sample I may be able to give suggestions if you provide the code for your page.

Reply Children