Hi. I am a novice.
I need a reasonably fast map<string, integer>. I tried TFPGMap on a very simple example:
Program Lesson1_Program1;
uses fgl, sysutils;
type
TMap = Specialize TFPGMap<string, integer>;
var
Map: TMap;
i: longint;
Begin
Map := TMap.Create;
for i:=0 to 100000 do
Map['item #' + IntToStr(i)] := i;
End.
and running it takes 1 minute and 30 seconds on a relatively new i5 processor. It looks very slow. Did I make a mistake somewhere? Or I should look for some other data structure?