chiprook
← Software
SoftwareOctober 16, 2026, 22:22

Zod 4.5 adds in-process schema compilation, cuts memory 9x

Zod 4.5 introduced z.compile(), which turns schemas into precompiled validators that parse data 3–9x faster, and cut schema memory usage roughly ninefold, from 7.5KB to 784 bytes for a bare z.string(). Compilation runs in-process with no bundler plugin; version 4.6 added a .validate() method and fixed a recursive-schema memory regression.

Zod 4.5 adds in-process schema compilation, cuts memory 9x
#Zod#TypeScript
Read next
Software

TypeScript 7.0 ships without a stable compiler API, breaking typescript-eslint

Software

Developer ports TypeScript compiler to Rust with AI for $24,000

Software

Vercel unveils Scriptc: TypeScript-to-native compiler with no JS engine

Software

Vercel Labs open-sources ScriptC, a native TypeScript compiler