Re: [fpc-pascal] THashedStringList vs TFPHashTable

2006-09-28 Thread Graeme Geldenhuys
On 28/09/06, Dean Zobec <[EMAIL PROTECTED]> wrote: It's a typical use. Choose an appropriate HashTableSize when creating the container (approx.the number of the elements you are going to store or more), you can test it with different hash functions and see through the statistics which one is bett

Re: [fpc-pascal] THashedStringList vs TFPHashTable

2006-09-27 Thread Dean Zobec
Graeme Geldenhuys ha scritto: > Thanks to all that replied. The string that is going to be stored in > the List (with associated object) is a GUID string, so is very random > by nature. Would this have any negative affects in the hash table? > > I will try it out anyway, I can always swap the in

Re: [fpc-pascal] THashedStringList vs TFPHashTable

2006-09-27 Thread Graeme Geldenhuys
Thanks to all that replied. The string that is going to be stored in the List (with associated object) is a GUID string, so is very random by nature. Would this have any negative affects in the hash table? I will try it out anyway, I can always swap the internal list out if needed. What I am c

Re: [fpc-pascal] THashedStringList vs TFPHashTable

2006-09-27 Thread Dean Zobec
Graeme Geldenhuys ha scritto: > Hi, > > Is TFPHashTable the same as Delphi's THashedStringList? > > I am looking for a List class that can hold large amounts of objects > with a ID string associated for quick lookups. > > Regards, > - Graeme - Yes, similar to a THashedStringList, but with a sp

RE: [fpc-pascal] THashedStringList vs TFPHashTable

2006-09-27 Thread Lee, John
Not in cutils.pas - found them in compiler/cclasses.pas. J > > > At 16:00 27-9-2006, you wrote: > >Hi, > > > >Is TFPHashTable the same as Delphi's THashedStringList? > > > >I am looking for a List class that can hold large amounts of objects > >with a ID string associated for quick lookups. >

Re: [fpc-pascal] THashedStringList vs TFPHashTable

2006-09-27 Thread Peter Vreman
At 16:00 27-9-2006, you wrote: Hi, Is TFPHashTable the same as Delphi's THashedStringList? I am looking for a List class that can hold large amounts of objects with a ID string associated for quick lookups. For the compiler i created a TFPHashList and TFPHashObjectList as similair to TFPList

Re: [fpc-pascal] THashedStringList vs TFPHashTable

2006-09-27 Thread Cesar Romero
Graeme, I dont know if is the same, but I know that the operations in THashedStringList is sloow, too much unecessary operations, I use TStringHash class for that. for interfaces: Look the unit JazzClass.pas in http://jazz.liws.com.br/download/jazz_a7.zip for objects: http://blogs.liw