Optimizing Swift Collections

Optimizing Swift Collections

In this talk, I describe several ways to implement the same simple ordered set protocol in Swift, demonstrating how the language supports a number of surprisingly different approaches to programming. At every step, we trade extra complexity for improved runtime performance, ending on an implementation that is ludicrously fast but also quite difficult to handle.

Presented on dotSwift 2017 in January 2017.

The talk has a repository on GitHub, with full source code and further details:

https://github.com/lorentey/OptimizingCollections

0735d3bf1d76c0385258ac7a2a22d6fe?s=128

Károly Lőrentey

January 27, 2017
Tweet