473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Tree View Performance

Can anyone advise me on how well the windows .net tree view control performs
when loaded with large numbers of nodes.
I'm intersted in how it might perform when used with possibly millions of
nodes.
At what point will the control be 'over-stressed'?

Nov 21 '05 #1
2 1670
Kevin -

I have a number of comments on this topic, having asked the same question
myself on several different occasions.

First of all the clear answer is NO. You would never want to load that many
nodes into the tree control. I remember clearly back in VB6 land that the
tree control would bog down after only adding several thousand nodes. I
think it's a bit better in .NET, but not much.

There are a couple of third party controls out there that are much better
designed to handle hundreds of thousands of nodes much faster.

BUT... all that having been said, I would turn this around on you, (as I did
to myself) and ask the question, "What are you thinking????" A MILLION
nodes? What kind of application requires the display of so many nodes at
once, and even if you could, do you really want your user having to go
through that many nodes to get where he or she wants?

Which direction are the millions of nodes? Is there a million nodes under
the root (vertical build) or does each node have ten nodes that has ten nodes
that has ten nodes, etc... (horizontal build)?

If it is a vertical build, I don't think a tree node is the right tool. If
it is a horizontal build, then I would recommend the solution I ended up
using and that is to only fetch the child nodes when the branch is
expanded... That way you are not wasting all those resources for all the
millions of nodes that will never get looked at.

Hope this helps! Good luck from a guy that's "been there, done that."

-Zorpy
Nov 21 '05 #2
Zorpiedoman,
Thanks for your reply and good advice.
I will have to reconsider the presentation of my data.

Kevin

"Zorpiedoman" wrote:
Kevin -

I have a number of comments on this topic, having asked the same question
myself on several different occasions.

First of all the clear answer is NO. You would never want to load that many
nodes into the tree control. I remember clearly back in VB6 land that the
tree control would bog down after only adding several thousand nodes. I
think it's a bit better in .NET, but not much.

There are a couple of third party controls out there that are much better
designed to handle hundreds of thousands of nodes much faster.

BUT... all that having been said, I would turn this around on you, (as I did
to myself) and ask the question, "What are you thinking????" A MILLION
nodes? What kind of application requires the display of so many nodes at
once, and even if you could, do you really want your user having to go
through that many nodes to get where he or she wants?

Which direction are the millions of nodes? Is there a million nodes under
the root (vertical build) or does each node have ten nodes that has ten nodes
that has ten nodes, etc... (horizontal build)?

If it is a vertical build, I don't think a tree node is the right tool. If
it is a horizontal build, then I would recommend the solution I ended up
using and that is to only fetch the child nodes when the branch is
expanded... That way you are not wasting all those resources for all the
millions of nodes that will never get looked at.

Hope this helps! Good luck from a guy that's "been there, done that."

-Zorpy

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tree menu using XML | last post by:
I have one XML file that has nodes and sub node and each and every node has the attribute call visible if its value is true then diplay this node else don't display thid node, but this condition i...
19
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has...
1
by: Jesper DK | last post by:
Hi, I have docked a tree view to the left on a form. When I start to populate this tree view with nodes, a horizontal scroll box appears in the bottom of the tree view even though thee tree...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
10
by: dwok | last post by:
Does anyone know of a good article that discusses creating a "Tree View" control in ASP.NET? Or perhaps a Tree View Control that comes with source code? I have come across a lot of tree controls...
0
by: rinishrk | last post by:
Hi, I have a web application that contains subfolders Admin and User with related webpages inside them. Within the Admin folder I have a page containing a Tree View Control.I want this tree view...
3
by: gmail | last post by:
Hi Friends, Can any body suggest me on this. I am working on .NET 2005 Frame work 2.0 . I am facing problem using the tree stucture. I created the site map.Now i want use the site map in every...
1
by: ursskmdali | last post by:
Sorry for my unclear question. Here is my problem description. I want to know is there any possibility to implement Tree view , and assign all functionality to it i.e. copy, paste, add...
1
by: happy.john1234 | last post by:
Hi, i am a new bie in programming.I am currently doing a project that displays certain hierarchial set of data in tree view.I currently implemented this tree view to be displayed in xml file ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.