Optimizing JavaScript Performance
Profile the deployed Node/browser version after warmup. TypeScript types are erased, so measure the emitted JavaScript, engine allocation/GC behavior, and host-boundary cost.
- Read JavaScript/TypeScript performance audit.
- Scan for per-item allocation, unstable record shapes, polymorphic call sites, callback or Promise churn, intermediate arrays/strings, regex/UTF work, and per-item native/Wasm calls.
- Keep V8-friendly layouts as readable data design, not reliance on undocumented engine tiers or production-only flags.
- Re-run corpus, Unicode/error, startup, heap, GC, and tail-latency measurements on every supported Node/V8 line affected.