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

silvioprog silvioprog at gmail.com
Fri Jan 15 00:10:08 CET 2016


On Thu, Jan 14, 2016 at 4:27 AM, Maciej Izak <hnb.code at gmail.com> wrote:

> Please disconsider this link above, the correct link is:
>> http://pastebin.com/SUxJ1kKc.
>>
>>
> My results for FPC and TDictionary from Generics.Collections (
> https://github.com/dathox/generics.collections ):
>
> TStringList: 00:00:03.644
> TMyList: 00:00:00.007
> TMyList: 00:00:00.007
> TStringList: 00:00:03.708
>
> Delphi XE2 :
>
> TStringList: 00:00:02.938
> TMyList: 00:00:00.002
> TMyList: 00:00:00.003
> TStringList: 00:00:03.063
>

Nice. This - useful - class should be added in FCL. :-)

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


More information about the fpc-pascal mailing list