[fpc-devel] FPC hash tables vs hash lists?

Peter Vreman peter at freepascal.org
Wed Oct 24 16:47:47 CEST 2007


> On 24/10/2007, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
>>
>> So which ones are the more specialized ones?  The xxxHashList classes
>> or the xxxHashTable classes?
>>
>> Table vs List?
>>
>
> I read the online docs again. Looking only at the hash classes storing
> pointers. I still don't understand the difference if any between the
> TFPHashList and TFPDataHashTable classes?
>
> That's why is said before:  List vs Table

The TFPHashList and TFPHashObjectList behave the same as a TFPList/TFPObjectList with the
additional feature of an hash on a key and corresponding find functions. The key is limited to a
shortstring for speed and memory requirements. I have developed these classes especially for the
compiler. But since they were general purpose also included them in the FCL.

Peter





More information about the fpc-devel mailing list