[swift-corelibs-dev] IndexPath performance

Stephan Tolksdorf st at quanttec.com
Mon Aug 1 10:44:21 CDT 2016


IndexPath is currently implemented using an [Int] array that is bridged to
an NSIndexPath only on demand. Since IndexPath values are primarily used
together with Objective-C APIs, wouldn't it be better to implement
IndexPath directly as an NSIndexPath wrapper, in order to avoid the
overhead of temporary array instances?

- Stephan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160801/a0ab5624/attachment.html>

More information about the swift-corelibs-dev mailing list