[fpc-pascal] Hashmap for integers
Juha Manninen (gmail)
juha.manninen62 at gmail.com
Sun Aug 22 23:26:55 CEST 2010
On Sunday 22 August 2010 17:34:55 Andreas Schneider wrote:
> uses fgl;
> TIntMap = specialize TFPGMap<Integer, Integer>; //Maps Int --> Int
I compared the performance of this generics map to a simple integer list.
The map was much slower and it also ate huge amouts of memory, > 1.5 GB.
Strange. My data is only some kilobytes, not gigabytes.
The code runs in parallel threads. Could that be a problem?
Anyway, I will look for some other lookup methods now...
More information about the fpc-pascal