Tom wrote:Hi,
Can you provide some source-code to look at? Otherwise I'll try to provide some speed-tips. About how many nodes are you talking about? Have you looked at the speed-demo?
Regards,
Tom.
There may be up to 50000-100000 leaves, but already at about 1000 leaves (if unlucky, there are 5 nodes for each leave) adding suddenly start to go very slow. The same happens with tTreeView (which I use currently since trying teeTree gave no improvement at all
Yes, I have tried the demo, but there you only add a single node to the root.
The tree consists of name of country, name of county, name of community. standard name of parish and the text that user did enter in his program (different genealogy programs)
The routine is a presentation of a place name analysis done for Norwegian places, same for Sweden, Finland, Denmark and USA.
The data is stored in a tStTree container, adding the data to traditional stringgrids happens in a few seconds when there are 10000 analysed places to add, while using tTreeView or TeeTree takes nearly an hour
Is there a timing program that works with dbs2006 code? I tried some of the Turbopower Stopwatch and lineprofiler to measure what routine used the time, but they didn't work with dbs2006 Delphi, only Delphi 5
At moment I don't have any code since I outcommented the teetree part and am going to have an eye surgery on thursday and need to use time until then for other projects.
But in short, I add nation name to a root node, then counties for that country to the country node, then add communties (kommuner) to each county node, add parishes to each community node and the place names for the parish to the parish node. These are the leaves to which i add a pointer to the entry in the tStTree tree.
Could it be the adding of the object that slows down ?
Or is there a magic limit when passing about 20000-30000 nodes in total or earlier (have not measured exactly when things stop up running fast?)