[swift-dev] Very slow Set<String>(arrayOfStrings) for some arrayOfStrings
Jens Persson
jens at bitcycle.com
Tue Mar 1 07:01:03 CST 2016
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).
I've put together a tiny program to demonstrate the problem here:
http://sloppyfocus.com/slowSetFromParticularButSeeminglyNormalArrayOfStrings.html
Is this due to a bug / performance problem in Set or can it be explained
(and solved) in some way?
/Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160301/0b7b9244/attachment.html>
More information about the swift-dev
mailing list