<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Jens,</div><div class=""><br class=""></div><div class="">Thanks for reporting this issue. I don’t know what’s going on but we’ll take a look.&nbsp;</div><div class=""><br class=""></div><div class="">I think it would be great if you could add this program as a benchmark under swift/benchmarks/. &nbsp;This will allow us to track the performance of this test and ensure that we don’t regress.&nbsp;</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Nadav&nbsp;</div><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 1, 2016, at 5:01 AM, Jens Persson via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">For some particular arrays of strings, creating a Set&lt;String&gt;(arrayOfStrings) takes about 100 to 200 times longer than for other very similar arrays of strings (equally many unique simple [a-zA-Z ]+ strings).</div><div class=""><br class=""></div>I've put together a tiny program to demonstrate the problem here:<div class=""><a href="http://sloppyfocus.com/slowSetFromParticularButSeeminglyNormalArrayOfStrings.html" class="">http://sloppyfocus.com/slowSetFromParticularButSeeminglyNormalArrayOfStrings.html</a></div><div class=""><br class=""></div><div class="">Is this due to a bug / performance problem in Set or can it be explained (and solved) in some way?</div><div class=""><br class=""></div><div class="">/Jens</div><div class=""><br class=""></div></div>
_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-dev<br class=""></div></blockquote></div><br class=""></body></html>