Month: August 2017

High-Level SIL Optimization in the Swift Compiler

Matt Rajca discovered last year that Swift’s Array.append(element) is 6x faster than Array operator+=(collection). This is a shame, because the latter is semantically equivalent, easier to type, and more pleasing to the eye. Swift is a new language, so there is no shortage of opportunities for optimization. I’ve enjoyed the recent uptick in “how to build a super simple compiler” blog posts, but there isn’t […]

Continue Reading