[swift-dev] Very slow Set<String>(arrayOfStrings) for some arrayOfStrings

Daniel Duan daniel at duan.org
Wed Mar 2 12:24:15 CST 2016


Arnold Schwaighofer via swift-dev <swift-dev <at> swift.org> writes:

> 
> That is the difference between a “String” type instance that can use the
> ascii fast path and NSString backed “String” type instances.
> 

This makes total sense now :) I was very mystified by this issue and thought
it's a weird bias in the hashing function at some point.

Thanks for the insight Arnold.


More information about the swift-dev mailing list