-
-
Notifications
You must be signed in to change notification settings - Fork 820
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
Performance Issues because of AbortSignal (Execution Cancellation Plugin) #6791
Comments
pozylon
changed the title
Performance Issues because of AbortSignal
Performance Issues because of AbortSignal (Execution Cancellation Plugin)
Dec 21, 2024
Could you test with the following alpha? |
This shaves off another few milliseconds btw: //const promises = Promise.all(Object.entries(object).map(async ([key, value]) => {
// resolvedObject[key] = await value;
//}));
const promises = Promise.all(Object.keys(object).map(async (key) => {
resolvedObject[key] = await object[key];
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This line here likely makes yoga 10x slower because it almost spends all of it's time adding event listeners when an AbortSignal is provided through the execution context. I just wanted to share my finding here and I'm currently looking for a solution and I don't have an idea yet how to fix that...
graphql-tools/packages/executor/src/execution/promiseForObject.ts
Line 18 in 5ecdb9d
Maybe it's some kind of regression because of this commit here: 020b9e47b51f9847bf915d ?
The text was updated successfully, but these errors were encountered: