-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cache documents, schema loading + os.cpus for concurrency limit + async fs #5707
Conversation
🦋 Changeset detectedLatest commit: 2cbef3b The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest changes of this PR are available as alpha in npm (based on the declared
|
1a4493a
to
ff30197
Compare
9ea19ea
to
7673256
Compare
abf36bb
to
3e724c5
Compare
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/theguild/graphql-code-generator/4ABHYgRAdimtAUYX6tN5mgSZ8U2z [Deployment for 2cbef3b canceled] |
The latest changes of this PR are available as alpha in npm (based on the declared
|
Currently blocked by |
We can just go with native |
yeah, @kamilkisiela told me also this, I'll refactor with native |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…nc fs (dotansimha#5707) * Cache documents and schema loading * changelog * Use os.cpus to calculate concurrency limit * fs async * changes * revert config on cache (already introduced at codegen level) * refactor(cli): use native node fs/promises * fix(cli): imports issue * fix(changeset): remove useless changeset * fix(cli): remove duplicated code.. * fix(cli): remove useless async/await Co-authored-by: Charly POLY <[email protected]>
This should improve the performance a bit in scenarios similar to the one below.
I also did
aaand changed
fs.sync
tofs.async