VercelDev & Eng

Content type: Concept

4 min read

Vercel cuts cache restore time, shaving up to 14s off build initialization

Article · Dev & Eng
Reading
4 min
Tables
1
In short

A change in how Vercel restores cache before running the build command dropped this step's time from seconds to milliseconds, with bigger gains for bigger projects.

Vercel published a change in its official changelog to how it restores build cache before running the command that actually compiles the project. According to the changelog entry (link in the source), the slowest cache restores, which used to take seconds, now happen in milliseconds. The effect carries over to the build initialization step, the interval between the start of the process and the execution of the build command itself.

This detail matters because build initialization is not the same thing as the build itself. Before next build, tsc, or any other configured command starts running, Vercel needs to restore what's left from the previous build: dependency cache, intermediate artifacts, webpack cache inside .next/cache. It's precisely this restoration that got faster, not the compilation itself.

The numbers, according to Vercel

Vercel reports an average gain of 2.3 seconds across all plans, 6.5 seconds at the 90th percentile (P90), and up to 14 seconds at the 99th percentile (P99), which covers builds with the largest caches. The logic is straightforward: the larger the cache a project accumulates, the longer it used to take to restore, and the more time the change saves now.

The company published two examples measured before and after the change:

Expert views

What people are saying about it.

PodSecurityPolicy was removed, and pod security control is now handled through namespace labels. Official Kubernetes documentation shows how to migrate without breaking existing workloads.

Rafael Oliveirain an iMasters article · Read the article: Pod Security Admission Has Been Stable Since Kubernetes 1.25: A Guide to Migrating PodSecurityPolicy in Production

Since December 3, 2026, it has been possible to create repositories on GitHub using SHA-256 instead of SHA-1. The algorithm has existed in Git since 2020, but it's only now arriving on github.com, with no conversion for existing repositories.

Bisneto Bragain an iMasters article · Read the article: GitHub Enables Creation of Git Repositories with SHA-256 in Public Preview
ProjectCache restore beforeCache restore afterInitialization gain
Small Python backend1.3s3ms~35% faster
Large Next.js documentation site8.6s8ms~30% faster

The second case is the one that matters most to anyone working with Next.js in production: one of Vercel's own largest documentation sites, which presumably accumulates a heavy build cache (static pages, dynamic routes, ISR cache), had its restore time cut from 8.6 seconds to 8 milliseconds. That's a reduction of more than a thousandfold in the time for that specific step.

Why this matters more for large projects

The gain isn't uniform, and that's the key point for anyone deciding whether the change matters in their case. Small projects, with a lean build cache, always had fast restores; the change still helps, but in absolute terms the time saved is small (the Python backend example went from 1.3s to 3ms, a real difference, but one that was unlikely to be the pipeline's bottleneck).

Projects with a large build history, on the other hand, such as monorepos with multiple Next.js apps or documentation sites with hundreds of statically generated pages, accumulate a larger build cache over time. That's exactly where the old restore process turned into a fixed tax on every deploy, paid before even the first file was compiled. Cutting that tax down to milliseconds removes a cost that grew along with the project, without the team having to change anything in their configuration.

In short: the teams that feel this gain the most are those who already deploy frequently and work with a Next.js project that's grown substantially: more routes, more static pages, more dependencies. For those teams, the initialization step stopped scaling with cache size and became nearly constant instead.

What this doesn't change

It's worth being direct about what this optimization doesn't touch. It doesn't speed up the execution of the build command itself: if your pipeline's bottleneck is tsc checking types in a large project, or webpack bundling hundreds of modules, that time stays the same. Vercel's change only acts on the previous step, restoring what already existed from a past build.

It also doesn't help builds that start from scratch, with no prior cache: the initial deploy of a new project, or builds triggered after a cache clear, have nothing to restore, so there's no gain to measure there. The benefit shows up from the second build onward, once a valid cache exists to recover.

For anyone tracking total deploy time on the Vercel dashboard, the realistic expectation is to notice the difference in the build time column once the project already has history, especially in monorepos and large Next.js sites with accumulated ISR or static route cache. Small, new builds will keep being as fast as they already were, just with less variance from one run to the next.

Where this fits in the deploy flow

For teams that run dozens of deploys a day (a preview deployment for every PR, a production deploy on every merge), seconds saved per build add up quickly. A 6.5-second gain at P90, multiplied by dozens of daily CI runs, adds up to minutes less waiting per day just in the deploy queue, with no code changes required on the team's side.

Vercel kept its build cache documentation as a reference for anyone who wants to understand how the caching mechanism works behind this. It's worth the read for teams that configure custom caching or that have already looked into why large builds took longer to start: this was, in large part, the explanation.

Translated from the Brazilian Portuguese original · Read the original

Read also
Dev & Eng

Vercel's AI Gateway adds Qwen4-35B-A3B, open model with video support

Qwen4-35B-A3B, from Alibaba, is the first open model in the Qwen4 series and has arrived in the AI Gateway catalog with video input and a 1 million token context. For those building front-end with code agents, this opens up an open, inexpensive alternative to the usual closed options.

Carina Ferreira··1 min