---
answer: direct
beat: web-performance
source: 1 article · updated: November 14, 2026
---

What can I do in my own code to reduce cold starts?

Keep the deployment package small, import only what you use, do heavy initialisation lazily or outside the critical path, choose a fast-starting runtime when latency matters, reuse connections created outside the handler, and avoid loading large models or files at startup unless a snapshot or provisioned capacity covers it.

Answered in

Serverless Cold Starts Explained: MicroVMs, Snapshots and What You Can Control

Why a function's first call is slow, how microVMs and snapshot restore cut it, and the code and config choices that shrink cold starts on your side.

Crashtech Editorial November 14, 2026 Web Performance

Read the full analysis

Other questions this article answers

More web performance questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the Web Performance beat.