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

Michael Van Canneyt michael at freepascal.org
Wed Oct 24 13:24:58 CEST 2007



On Wed, 24 Oct 2007, Graeme Geldenhuys wrote:

> Hi,
> 
> Whats the difference between these???  Don't they do the same thing?
> And if so, why does FPC duplicate the efforts in the contnrs.pp unit?
> For the online docs they seem to do the same.
> 
> 
> TFPHashList   vs   TFPDataHashTable
> TFPHashObjectList   vs   TFPObjectHashTable
> 

One is more extensible as the other. This is also explained in the docs, as
far as I remember. If you're just going to use the class as-is, it doesn't
really matter which one you use. As with many 'general' classes, it's
slightly slower than the special class...

Michael.



More information about the fpc-devel mailing list