<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 14, 2016 at 4:43 AM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Wed, 13 Jan 2016, silvioprog wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">Hello,<br>
<br>
I need two fast list features:<br>
<br>
Add(Key: string, Value: string);<br>
Get(Key: string, Value: string): string;</span></blockquote></blockquote><div>[...] </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
TStringList.Values is extremely slow, this is known. It performs a simple linear search.<br>
<br>
- THashedStringList from inifiles should be faster for name=value.<br>
- for simple key=value pairs, contrns contains various hash lists.<br></blockquote><div><br></div><div>Very nice, I did not know that this classes existed.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
You can include them in your tests to get a more complete picture.</blockquote></div><div><br></div><div>I'm going to do it and get back soon showing the results ... :-)</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>