Byte-Sized Design

Byte-Sized Design

📌 Pinterest improves build times by 99% with one line of code

This article is longer than the code change

Byte-Sized Design's avatar
Byte-Sized Design
Feb 26, 2024
∙ Paid

Read time: 1 minute

📚 tldr;

Pinterest was a monorepo in 2020 and developers cloned it every time for their CI/CD pipelines.

Problem: The pipeline was set up to clone the entire monorepo and ALL its branches.

Resolution: Pinterest made a config change to just pull the master branch.

Results: Pinterest build times went from 40 minutes → 30 SECONDS


💰 HELP WANTED

This newsletter has grown to 19,500 → 20,500 AMAZING READERS. It’s grown to a scale that a single person can’t maintain all of it on their own.

If you’re interested in being a byte-sized design writer, apply here!

⚙️ How big is Pinterest’s code base?

In 2020, Pinterest had a feature called pinboard that had 350,000 commits!

The size of this was 20 Gigabytes!

Imagine downloading 20gb every code change and multiple that for each branch.

How many branches are we talking about?

User's avatar

Continue reading this post for free, courtesy of Byte-Sized Design.

Or purchase a paid subscription.
© 2026 Byte-Sized Design · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture