On Tue, 10 Jan 2017 13:23:46 +0100 Bart via Lazarus <lazarus@lists.lazarus-ide.org> wrote:
> On 1/10/17, Werner Pamler via Lazarus <lazarus@lists.lazarus-ide.org> wrote: > > > If the author if the AVLTree is reading this: Is there a way to add a > > group of nodes to the tree which are already ordered such that they will > > be adjacent? > > I think that may not be possible. Your data may be ordered already, > but that does not guerantee that there is not already data inside the > tree that must be ordered "inside" the group you add? Yes, the optimization only works if you insert a sequence between two nodes. The new AddAscendingSequence checks that. Mattias -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus