[fpc-pascal] Difference between Associative array and Hashlist?
Sven Barth
pascaldragon at googlemail.com
Mon Aug 24 23:10:16 CEST 2020
Am 24.08.2020 um 21:47 schrieb Lars via fpc-pascal:
> Since FPC has no associative array I was thinking that the closest is
> TStringList with name/value pairs.
>
> Then there is a hashlist in contnrs.
>
> Maybe an associative array means you don't have to implement it using
> hashes in order for it to work?
>
> If there is a need for one I might write one as the TStringList is a
> bit slow, but do they already exist elsewhere before undertaking it...
I suggest you to take a look at TDictionary<,> in Generics.Collections.
You can find a comparison regarding performace of various hash list
classes available with/for FPC here:
http://www.benibela.de/fpc-map-benchmark_en.html
Regards,
Sven
More information about the fpc-pascal
mailing list