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 Reply Children
No Data