<div dir="ltr">Thanks, but I'll have to invite anyone with more time and experience to do that.<div><br><div>One (of many) thing(s) I wouldn't know how include/handle is the 1.3 MB text file for the particular arrayOfStrings that makes Set(arrayOfStrings) slow. It seems a bit unnecessary/bloating to put it in the code base.</div></div><div><br></div><div>/Jens</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 11:58 PM, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank">nrotem@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Jens,</div><div><br></div><div>Thanks for reporting this issue. I don’t know what’s going on but we’ll take a look. </div><div><br></div><div>I think it would be great if you could add this program as a benchmark under swift/benchmarks/. This will allow us to track the performance of this test and ensure that we don’t regress. </div><div><br></div><div>Thanks,</div><div>Nadav </div><br><div><blockquote type="cite"><div><div class="h5"><div>On Mar 1, 2016, at 5:01 AM, Jens Persson via swift-dev <<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><div>For some particular arrays of strings, creating a Set<String>(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><br></div>I've put together a tiny program to demonstrate the problem here:<div><a href="http://sloppyfocus.com/slowSetFromParticularButSeeminglyNormalArrayOfStrings.html" target="_blank">http://sloppyfocus.com/slowSetFromParticularButSeeminglyNormalArrayOfStrings.html</a></div><div><br></div><div>Is this due to a bug / performance problem in Set or can it be explained (and solved) in some way?</div><div><br></div><div>/Jens</div><div><br></div></div></div></div>
_______________________________________________<br>swift-dev mailing list<br><a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-dev" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br></div></blockquote></div><br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">bitCycle AB | Smedjegatan 12 | 742 32 Östhammar | Sweden<br><a href="http://www.bitcycle.com/" target="_blank">http://www.bitcycle.com/</a><br>Phone: +46-73-753 24 62<br>E-mail: <a href="mailto:jens@bitcycle.com" target="_blank">jens@bitcycle.com</a><br><br></div>
</div>