optimizing-performance
Installation
SKILL.md
Optimizing Zod Performance
Purpose
Guide to performance optimization patterns in Zod v4, leveraging improved parsing speed, reduced bundle size, and efficient validation strategies.
Zod v4 Performance Improvements
Zod v4 introduced major performance gains:
- 100x reduction in TypeScript instantiations (faster compilation)
- 14x faster string parsing (runtime performance)
- 7x faster bulk array validation
- 57% smaller bundle size
- Faster discriminated union parsing
These improvements are automatic when using v4.