PSA for zod v4 users, esp on Lambda, Vercel, CF Workers, etc with a bundler:
import * as z from โzodโ; // โ 68kb
import { z } from โzodโ; // โ 244kb
If you're ever feeling down about your code, keep your chin up: I just noticed the AWS SDK has had this for six years ๐ฌ
(you can't compare arrays like this in JS)
I've made a PR to optimize some of that work. It currently creates 1745 ReadableStreams per request unnecessarily ๐ฌ
This fix eliminates that and you get a 10-38% perf boost (Deno users get the most!)
github.com/vercel/next.jsโฆ
What makes Next.js slow? In cases like @theo's benchmark, it's because it's creating multiple React streams, parsing and rendering to JSON and HTML, reading the whole body along the way and doubling the payload. Next.js = 220ms, plain React streams the same thing in 27ms
One of the biggest engineering costs you can reduce is developer-thumb-twiddling. Brought our frontend CI time down from 8 mins to 25 secs by parallelizing on AWS Lambda (@lamb_ci). Each Lambda tests every nth file (testing/formatting/linting 3k files over 13 sites).
Oh, hey there ๐. Just had a lovely 5 mth break ๐จโ๏ธ, what'd I miss? No big changes I should know about? Well good, I'm back in NYC and happy to announce I've just started a new job at @Cloudflare as a Principal Engineer on the Workers team ๐
I've made a PR to optimize some of that work. It currently creates 1745 ReadableStreams per request unnecessarily ๐ฌ
This fix eliminates that and you get a 10-38% perf boost (Deno users get the most!)