graphql-tools icon indicating copy to clipboard operation
graphql-tools copied to clipboard

Performance Issues because of AbortSignal (Execution Cancellation Plugin)

Open pozylon opened this issue 10 months ago • 5 comments

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...

https://github.com/ardatan/graphql-tools/blob/5ecdb9dc6f119189892aeb9f284a1fae306b7ff9/packages/executor/src/execution/promiseForObject.ts#L18

Maybe it's some kind of regression because of this commit here: https://github.com/ardatan/graphql-tools/commit/020b9e47b51f9847bf915d ?

Bildschirmfoto 2024-12-21 um 17 22 51 Bildschirmfoto 2024-12-21 um 17 23 15

pozylon avatar Dec 21 '24 16:12 pozylon