Swift Array Performance

Airspeed Velocity: Your reminder that building arrays with reduce, while fun, is accidentally quadratic. I would have thought that extending an array would be optimized to not make a copy. Update (2015-08-01): Joe Groff: I don’t think + is implemented to check for unique referencing at all. Update (2015-08-03): Airspeed Velocity (tweet): I was surprised … Continue reading Swift Array Performance