<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 14, 2016 at 6:27 AM, Marco van de Voort <span dir="ltr"><<a href="mailto:marcov@stack.nl" target="_blank">marcov@stack.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>In our previous episode, Maciej Izak said:<br>
> ><br>
> My results for FPC and TDictionary from Generics.Collections (<br>
> <a href="https://github.com/dathox/generics.collections" rel="noreferrer" target="_blank">https://github.com/dathox/generics.collections</a> ):<br>
<br>
</span>If you need the in-order capacity of tstringlist then you can use<br>
<br>
<a href="http://www.stack.nl/~marcov/genlight.pas" rel="noreferrer" target="_blank">http://www.stack.nl/~marcov/genlight.pas</a></blockquote><div><br></div><div>It's a nice unit, and it should be available in FCL.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- It is iterator based though, no array access to keys.<br>
- Slower than most map solutions.<br>
- faster than (ordered) tstringlist.<br>
- Some tests indicate that the TStringlist slowdown is postponed from<br>
   a few 100k to say 5M elements. (then you would need another level<br>
   of indirection, though blocksize tweaking might buy you an order more)<br>
- iirc duplicates are always ignores. I need to fix that proprely sometime</blockquote></div><br clear="all"><div>I need to do some tests. Thanks for share it. :-)</div><div><br></div>-- <br><div><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>