You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
With a schema with 350 models and about 5000 fields, we generate a index.js of about 25mb with 100.000 lines and an index.d.ts of about 27mb with about 500.000 lines.
Just starting a simple script with JavaScript only takes 20s, that's the pure parsing and getting V8 smaller.
On top, the TypeScript compilation of a script importing @prisma/client takes 45s.
We can reduce the JavaScript runtime overhead by lazily generating the api dynamically in runtime.
The TypeScript declarations might be reduced by introducing more generics for types, which users don't import, but take a lot of space.
The text was updated successfully, but these errors were encountered:
With a schema with 350 models and about 5000 fields, we generate a
index.js
of about 25mb with 100.000 lines and anindex.d.ts
of about 27mb with about 500.000 lines.Just starting a simple script with JavaScript only takes 20s, that's the pure parsing and getting V8 smaller.
On top, the TypeScript compilation of a script importing
@prisma/client
takes 45s.We can reduce the JavaScript runtime overhead by lazily generating the api dynamically in runtime.
The TypeScript declarations might be reduced by introducing more generics for types, which users don't import, but take a lot of space.
The text was updated successfully, but these errors were encountered: