EngineeringNov 19, 2026 · 8 min read

How we cut cold starts on Edge Functions by 60%

TPTim ParkerStaff Engineer, Functions
[ EDGE FUNCTIONS ]

Cold starts are the tax every serverless platform pays. Over the last quarter we rebuilt how Pushbase boots isolates, and the p95 cold start for a typical function dropped from 410 ms to 160 ms.

The biggest win came from snapshotting the module graph at deploy time. Instead of parsing and linking dependencies on first request, we restore a pre-warmed heap.

Snapshotting at deploy time

config.toml
# pushbase/functions/config.toml
[functions.stripe-webhook]
snapshot = true
regions = ['iad', 'fra', 'sin']
160 msp95 cold start
-60%vs. previous runtime

Snapshots are now on by default for every new function. Existing functions pick them up on their next deploy.