Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript Performance #197

Open
darr1s opened this issue Nov 8, 2023 · 0 comments
Open

TypeScript Performance #197

darr1s opened this issue Nov 8, 2023 · 0 comments

Comments

@darr1s
Copy link

darr1s commented Nov 8, 2023

Hi guys, firstly, thanks @unlight and other contribs for this amazing GQL libs.

I am currently using the lib for a medium-sized project with about 60 tables, and concerned about further extending the codebase with many things relied on the library due to TypeScript / VSCode performance. Though understandable it is an upstream performance issue, but I think we could all share our tips and practices to develop awesome GQL API together with this lib.

Could we all share and discuss about our schema size, generator configs and rough performance

maybe in a format like, or discuss if any further profiling configuration is needed

emitSingle = true
emitCompiled = true
time to start Nest.js = 5m46s
time to generate Prisma = 43s
index.js 200k lines
index.d.ts 50k lines
emitSingle = true
emitCompiled = false
time to start Nest.js = 20s
time to generate Prisma = 16s
index.ts 120k lines
reExport = Single
emitSingle = false
emitCompiled = false
time to start Nest.js = 27s
time to generate Prisma = 17s
remark: will face many Excessive Stack Depth Comparison issues
reExport = Single
emitSingle = false
emitCompiled = true
time to start Nest.js = 55s
time to generate Prisma = 40s

Related

#178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant