Hello Arno, On Tue, Dec 7, 2010 at 7:48 PM, Arno Garrels <arno.garr...@gmx.de> wrote:
> Fastream Technologies wrote: > > Hello, > > > > I have fixed the function as below (providing for the sake of > > completeness): > > You are re-inventing the wheel. Simply set property TStringList.Sorted to > True > and a Add() or AddObject() uses binary search to Insert data at the right > index. > > I thought you opposed to it when I did just that! Maybe I misunderstood (?). Also I think a string list index is better for search speed than tree structures. This is for the cache, you know. And we also have a STL std::list for deletes (to know which files are the oldest). One OT question: Would it be faster if we use the cat() method of AnsiString instead of the + operand? Regards, SZ -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be