withZod = true
increases generation times by several magnitudes; any way to improve?
#75
Labels
enhancement
New feature or request
Bug description
I'm seeing this package take two magnitudes longer than any of my other generators. I know this generates a lot of code, but this still feels high and really hurts the developer experience, especially if prototyping with frequent schema changes.
Running with all defaults takes ~10 seconds:
Zod schemas seem to take 90%+ of this time, as setting
withZod
tofalse
decreases the time down to 366ms.How to reproduce
npm i prisma-trpc-generator
Add generator to Prisma schema:
npx prisma generate
Expected behavior
Runtime in the same ballpark as other generators. Zod schemas are not a negotiable for me, as I value the type safety extremely highly.
Prisma information
Schema:
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: