On Mon, 22 Jan 2007 19:15:40 +0300 Al Boldi <[EMAIL PROTECTED]> wrote:
> Mattias Gaertner wrote: > > Al Boldi <[EMAIL PROTECTED]> wrote: > > > > > Preallocating the tree in TTreeView could improve its speed a > > > > > lot. > > > > > > > > I doubt that. It already works with exponential growth. > > > > > > Preallocate in 16sec ============ > > > TreeView1.BeginUpdate; > > > TreeView1.Items.Clear; > > > for i:=1 to 100000 do > > > TreeView1.Items.Add(nil,''); > > > TreeView1.EndUpdate; > > > > I improved it. Please try. > > Do you have a patch against 0.9.15? I can create one, but I'm not sure, if the rest of 0.9.15 will work with it. Attached. Mattias
diff.txt.gz
Description: GNU Zip compressed data
