-
Notifications
You must be signed in to change notification settings - Fork 7
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
AbortSignal pattern is slow #44
Comments
this was recently addressed. The change may not have been fully backported tho? Not sure. |
Which particular pull request are you referring to? |
#44048 looks like it was backported to 18.x in #44941 tho |
@jasnell do you mean the transferable fix? I think abort signals are still slow but now it's because of eventtarget. |
There has a been a lot of focus here on creating signals and events as well as emitting events but that's not actually the problem for the RxJS case... |
Interesting ok. Well, I guess we need to figure out how to speed up EventTarget now. That said, really none of the Web Platform standard apis were designed with performance as a high priority. We'll have to keep find ways of optimizing while still remaining compliant to the specs. |
@ronag I'm reading this, I think EventTarget can be made faster (discussion in that thread + a few other ideas). As for RxJS's case, we can also fast-path |
Referencing: nodejs/node#46648 |
So - just to elaborate a little on RxJS's case. Us fixing EventTarget wouldn't help them at all since it would still be slow in the browser which they also support. Their avoidance isn't because our implementation is slow. |
Closing since it's a duplicate. |
To the point that e.g. RxJS has decided not support it.
ReactiveX/rxjs#6675 (comment)
The text was updated successfully, but these errors were encountered: