Get the latest tech news

Speeding up C++ build times


How we cut build times by 50% and shipped a solution for scale.

But as we dug in, we noticed that the ratio of post pre-processing bytes sent to the compiler to the amount of code added was growing really fast—a likely suspect for why build times were constantly increasing. One way to detect and prevent a regression in the number of bytes sent to the compiler is to measure it and inform feature branch authors that their change may have a significant impact on C++ build times. The tool provides the information we need to run this in our Continuous Integration (CI) system and definitively determine the increase in bytes per source file that a given PR causes.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of C++

C++

Photo of build times

build times

Related news:

News photo

The Performance Impact of C++'s `final` Keyword

News photo

Morton: Bit Interleaving in C/C++

News photo

3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup