5 ms·
I'm guessing the use of AnyObject is implicitly bridging Int and String to their non-struct types. The benchmark for an array with type Any seems to perform twi
by fyell 12y ago
I'm guessing the use of AnyObject is implicitly bridging Int and String to their non-struct types. The benchmark for an array with type Any seems to perform twice as fast as AnyObject.