Files
swift-mirror/stdlib/public/SDK/Foundation/NSFastEnumeration.swift
Philippe Hausler 03dd527414 [Foundation] Rework NSFastEnumerationIterator to be more performant
Previously the implementation of NSFastEnumerationIterator would cause many allocations and was overly complex; leading to poor performance in certain cases like DirectoryEnumerator etc. This version instead acts more similarly to how the objc for-in syntax works.
Resolves:
rdar://problem/30905263

and partially addresses some of the concerns backing:
rdar://problem/30195113
2017-04-17 09:44:43 -07:00

4.4 KiB