<div dir="ltr"><div>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><br></div>I&#39;ve put together a tiny program to demonstrate the problem here:<div><a href="http://sloppyfocus.com/slowSetFromParticularButSeeminglyNormalArrayOfStrings.html">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>