📌 Pinterest improves build times by 99% with one line of code
This article is longer than the code change
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.



