[KongchangAI]
· 2 min read· 1,206 words

Vercel Sandbox Snapshots 10x Faster: Median Restore Just 250ms

Vercel Sandbox Snapshots 10x Faster: Median Restore Just 250ms

Vercel Sandbox snapshot creation is up to 10x faster, with restore times halved.

Vercel announced major snapshot performance gains for its Sandbox product: median creation time fell from 4.4s to under 0.4s (up to 10x faster), and p50 restore time dropped from 500ms to 250ms (a 50% improvement). The speedup comes from a rework of the VHS (Vercel Hive Snapshot) format—optimizing data indexing for more parallel reads and writes, and loading the base image and user data in parallel during restore while reusing internal frames. Persistent sandboxes are the default; new snapshots get the optimizations with no configuration, while existing snapshots keep the old format for a gradual transition.

A Leap Forward in Snapshot Performance

Vercel has announced that snapshot creation for its Sandbox product is now up to 10x faster, with median creation time dropping from 4.4 seconds to under 0.4 seconds. On top of that, snapshot restore speed has improved by 50%, with p50 restore time cut from 500 milliseconds to 250 milliseconds.

Behind these numbers lies a more noteworthy signal: saving and restoring state for sandbox environments is shifting from an auxiliary feature to a foundational capability in the development workflow. For teams relying on persistent sandboxes, snapshot speed directly determines how smoothly session switching, task resumption, and parallel experimentation flow.

How the VHS Format Delivers the Speedup

The performance gains stem from a deep rework of the Vercel Hive Snapshot (VHS) format. The new version optimizes how data is indexed, allowing more read and write operations to execute in parallel.

Specifically, snapshot writes and restores can now reuse frames within the VHS format, reducing redundant data processing overhead. During the restore phase, the system can load the sandbox base image and user data in parallel rather than sequentially. Together, these two changes form the technical basis for the dramatic improvement in creation speed and the halving of restore time.

From an engineering standpoint, this optimization approach isn't complicated—index efficiency and parallelism are two classic levers for storage system performance. But applying them to a latency-sensitive scenario like sandbox snapshots amplifies the effect directly, because every session stop and resume triggers a snapshot operation.

The VHS (Vercel Hive Snapshot) format is a snapshot storage format Vercel built in-house for its Sandbox product; the "Hive" in the name hints at a sharded or layered organization. Unlike the traditional approach of packaging an entire VM disk image, VHS splits sandbox state into independently addressable "frames" and maintains an index recording each frame's location and dependencies. The key value of this design: writes only need to record newly added or changed frames, and restores can pull the required frames in parallel according to the index rather than sequentially scanning the entire image. The quality of the index structure directly determines the overhead of metadata lookups, so the "index optimization" mentioned here essentially lowers the fixed cost of each snapshot operation—which is the prerequisite for pushing median creation time below one second.

In snapshot systems, layering the base image and user data is a common architectural choice. The base image contains the OS, runtime, and preinstalled dependencies—large in size but highly reusable under the same sandbox template; user data consists of files and state changes produced during a session—small in size but different with every snapshot. Traditional restore flows often mount the base image first, then overlay the user data layer, creating a sequential dependency between the two steps. Vercel's change loads both in parallel, effectively breaking the serial bottleneck on the restore path. Note that this parallelism requires the system to correctly handle the overlay relationship and consistency checks between the two layers; otherwise, a race condition could arise where user data becomes ready before the base image. This necessarily comes with corresponding indexing and merge logic.

Default Behavior and Compatibility

Persistent sandboxes are the default mode for Vercel Sandbox: a snapshot is automatically created when a session ends, and the next startup restores from the latest snapshot. This behavior requires no configuration, and the new performance optimizations apply automatically to all newly created snapshots.

Existing snapshots retain the old format and are not automatically migrated. This means existing users won't encounter compatibility issues due to the format change, but they also won't immediately enjoy the speed improvements of the new format. For teams that rely on snapshots long-term, letting old snapshots naturally age out while new sessions use the new format is a smooth transition path.

A persistent sandbox refers to an operating mode in which a sandbox instance is not destroyed when a session ends; instead, its complete state is saved and restored as-is on the next startup. It contrasts with "ephemeral sandboxes": the latter start with a clean environment each time and suit one-off tasks, while the former suits long-running projects that need to preserve files, installed dependency results, and runtime context. Persistent mode makes a sandbox more like a "ready-when-you-are" remote development machine, but it also raises the frequency of snapshot creation and restoration to the point where nearly every session switch triggers one—which is exactly why snapshot latency has an outsized impact on experience. By making it the default, Vercel means most users will frequently depend on the snapshot path without being aware of it.

Impact on Development Workflows

With snapshot creation entering sub-second territory and restore times reaching the hundreds of milliseconds, what changes isn't just the feel of a single operation. In scenarios that require frequent sandbox start-stop cycles—running multiple experiments in parallel, switching context between tasks, or quickly rolling back from failures—the time saved per operation accumulates into a meaningful efficiency difference.

More practically, a restore speed of 250 milliseconds means sandbox recovery is approaching the level of "imperceptible." Developers no longer need to adjust their working rhythm to wait for the environment to be ready, and sandboxes can fit more naturally into interactive development flows.

Vercel's announcement points to the snapshot documentation but doesn't reveal whether there will be further optimizations to the VHS format. Based on the current changes, improvements in index efficiency and parallelism have already unlocked significant performance headroom, and the compatibility strategy for existing snapshots shows this is an incremental evolution rather than a complete rebuild.

The frequently mentioned p50 is a percentile metric in latency statistics, indicating that 50% of requests are faster than that value—i.e., the median. It's often used alongside p95 and p99 to characterize tail latency. For high-frequency operations like sandbox snapshots, p50 determines the smoothness of the "typical experience," while p99 determines whether a small number of slow requests will disrupt the working rhythm. Vercel published p50 figures, indicating its optimizations mainly improved the common path for the majority of requests; but when evaluating real-world experience, one should also watch whether the higher percentiles improve in tandem—otherwise occasional slow restores could still become a source of stutter in interactive development.

One-line Summary

Vercel Sandbox snapshot creation is up to 10x faster, with restore times halved.

Paragraph Summary

Vercel announced significant snapshot performance improvements for its Sandbox product: median creation time dropped from 4.4 seconds to under 0.4 seconds, up to 10x faster; p50 restore time was cut from 500 milliseconds to 250 milliseconds, a 50% improvement. The speedup mainly comes from a deep rework of the VHS (Vercel Hive Snapshot) format, including optimizing data indexing to support more parallel reads and writes, and loading the base image and user data in parallel during restore while reusing internal frames to reduce redundant processing. Persistent sandboxes are the default mode, with automatic snapshots at session end; new snapshots enjoy the optimizations without configuration, while existing snapshots retain the old format and are not automatically migrated, forming a gradual transition. The article argues that snapshots are evolving from an auxiliary feature into a foundational capability of the development workflow, and sub-second creation with hundreds-of-milliseconds restore will significantly improve scenarios with frequent sandbox start-stop cycles.

#Vercel Sandbox#snapshot performance#VHS format#persistent sandbox#p50 latency
Share:

Related articles