[fpc-pascal] Is the TFPGMap.KeyData()/TDictionary.TryGetValue() faster than TStringList.Values[]?

silvioprog silvioprog at gmail.com
Thu Jan 14 04:09:48 CET 2016


On Wed, Jan 13, 2016 at 11:34 PM, silvioprog <silvioprog at gmail.com> wrote:
[...]

> Please, run this small test in your environment (my env. is: FPC 3.1.1 /
> Delphi Seattle, both generating a 32 bits EXE):
>
> http://pastebin.com/vxwhD9W0
>

Please disconsider this link above, the correct link is:
http://pastebin.com/SUxJ1kKc.

(New results:

FPC - TFPGMap:

TStringList: 00:00:03.677
TMyList: 00:00:00.915
TMyList: 00:00:00.915
TStringList: 00:00:03.693

Delphi - TDictionary:

TStringList: 00:00:02.703
TMyList: 00:00:00.003
TMyList: 00:00:00.002
TStringList: 00:00:02.859)

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160114/0613e30b/attachment.html>


More information about the fpc-pascal mailing list