I want a tree with Folder names and cumulated size in it.
Goal: Scan through folders plus subfolders and create an tree with size and cumulated size of folders.
Dirty solution: No tree rather then a sum of files in that tree in a stringlist. Browsing not possible.
Better: An size object with folder name and size, parent folder and children in a tlist. The scan creates an object tree with all those data. Browsing through tree possible.
I have allready created both classes.
The problem is, that the stringlist approach is faster! .. (for the first scan)
In the object list I have to create an object a thousand times, whereby I fill the stringlist with thousand strings in a shorter time.
Is there a better way?
Is there a way to improve the speed of the object creation???
(A size object has names, size, parent folder and child folderobjects in a tlist. Creating those objects takes the longest time).
No goal is to create +1000 objects when I start the program!
Points for a managable solution which helps me to make this stuff faster.
I want to be able to browse through the results. (I use a treeview to display like explorer)