---
title: "Edge Functions are now 2x smaller and boot 3x faster"
description: "Supabase Edge Functions that use npm modules now bundle roughly half as large and boot several times faster."
url: "https://swe.quest/articles/edge-functions-are-now-2x-smaller-and-boot-3x-faster-9496468dafb32c35"
canonical: "https://supabase.com/blog/edge-functions-faster-smaller"
source: "Supabase"
published: "2024-09-12"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["serverless","performance","rust","javascript"]
---

# Edge Functions are now 2x smaller and boot 3x faster

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2024-09-12, 4 min read, Release. Original: [https://supabase.com/blog/edge-functions-faster-smaller](https://supabase.com/blog/edge-functions-faster-smaller)

## Summary

Supabase Edge Functions that use npm modules now bundle roughly half as large and boot several times faster. Example boot times drop from 275ms to 25ms for supabase-js and from 459ms to 57ms for the OpenAI SDK. The gains come from three changes to eszip handling in Edge Runtime: per-entry SHA-256 integrity checks now run lazily when a module is actually loaded, npm package bytes are serialized with rkyv instead of JSON number arrays that doubled their size, and source checksums switched from SHA-256 to the non-cryptographic xxHash-3. Redeploying with a recent Supabase CLI picks up the improvements.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- JavaScript bundling ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Deno basics

## Keywords

Supabase Edge Functions, eszip, Deno, rkyv, xxHash-3, Supabase Edge Runtime

## Related posts

- [Edge Functions: Node and native npm compatibility](https://swe.quest/articles/edge-functions-node-and-native-npm-compatibility-4f29863e45494db0.md): Supabase · 2023-12-12 · Medium · 3 min read · Serverless, JavaScript, Observability
  Supabase Edge Functions now natively support npm modules (via \`npm:\` imports) and Node built-in APIs, so existing Node apps using Express, node-postgres and Drizzle can migrate with minimal changes.
- [Persistent Storage and 97% Faster Cold Starts for Edge Functions](https://swe.quest/articles/persistent-storage-and-97-faster-cold-starts-for-edge-functions-c2ecae788df86c95.md): Supabase · 2025-07-18 · Medium · 4 min read · Serverless, Performance engineering, Storage systems, Multi-tenancy
  Supabase Edge Functions can now mount any S3-compatible bucket, including Supabase Storage, as a POSIX-like directory under /s3, configured through four S3FS\_\* environment secrets.
- [Supabase Edge Runtime: Self-hosted Deno Functions](https://swe.quest/articles/supabase-edge-runtime-self-hosted-deno-functions-55b12d1d5db96506.md): Supabase · 2023-04-11 · Medium · 7 min read · Serverless, Runtimes & VMs, JavaScript, Rust, Open source
  Supabase Edge Runtime is an MIT-licensed, Rust-based web server built on deno\_core that self-hosts Deno Edge Functions (TypeScript, JavaScript, WASM) without code changes.
- [Bun 1.2](https://swe.quest/articles/bun-1-2-646ed14b09e00278.md): Bun · 2025-01-22 · Medium · 56 min read · JavaScript, Runtimes & VMs, Cloud platforms, PostgreSQL, Performance engineering
  Bun 1.2 makes a major push on Node.js compatibility by porting thousands of files from the Node.js test suite into Bun's CI, with stubbed internal bindings and assertions on error name/code rather than message text.
- [Bun v1.3.6](https://swe.quest/articles/bun-v1-3-6-82f073799d1ad25c.md): Bun · 2026-01-13 · Medium · 13 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems
  Bun v1.3.6 adds a built-in Bun.Archive API for creating and extracting tar/gzip archives, a native Bun.JSONC parser, and new Bun.build options for esbuild-compatible metafiles, virtual in-memory files, local cross-compile executables and React Fast Refresh.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
