On Thu, Jan 14, 2016 at 4:43 AM, Michael Van Canneyt <mich...@freepascal.org > wrote:
> On Wed, 13 Jan 2016, silvioprog wrote: > >> Hello, >> >> I need two fast list features: >> >> Add(Key: string, Value: string); >> Get(Key: string, Value: string): string; > > [...] > TStringList.Values is extremely slow, this is known. It performs a simple > linear search. > > - THashedStringList from inifiles should be faster for name=value. > - for simple key=value pairs, contrns contains various hash lists. > Very nice, I did not know that this classes existed. > You can include them in your tests to get a more complete picture. I'm going to do it and get back soon showing the results ... :-) -- Silvio Clécio
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal