Episode #608

Improve Temperature Parsing

Series: Billion Row Challenge

31 minutes
Published on May 5, 2026

This video is only available to subscribers. Get access to this video and 607 others.

In this episode, we change our strategy for parsing temperatures from String / Float parsing into parsing digits as an Int. We can do this because the input data is very constrained and always has a single decimal point. Parsing and storing these as integers means it's much faster to parse and all we need to do is divide by 10 at the very end. This ends saving us nearly 30s on the large data set.

This episode uses Swift 6.2, Xcode 26.2.