4 ms·
One thing to note about zod - it clones objects as it validates (parses) them. Eg z.array(z.object()) with an array of 10k objects will result in 10k cloned ob
by psadri 2y ago
One thing to note about zod - it clones objects as it validates (parses) them. Eg z.array(z.object()) with an array of 10k objects will result in 10k cloned objects → slow.
- molszanski 2y agoI would suggest https://arktype.io/ https://arktype.io/. Much faster on my project