Skip to content

Transferrable AbortController is very slow #43160

@ronag

Description

@ronag

The way AbortController is implemented (with transferrable support) makes it very slow to use and I'm currently recommending everyone to use the npm package (abort-controller) instead.

I don't think transferrable use of abort controller is very common and it's a bit unfortunate that such an unusual use case has significant performance impact on the common use.

Is there any way to improve this? As far as I understand it's not possible to improve the current implementation with transferrable support without further features from V8. Which leaves the question on whether we can add an option to disable/enable the transferrable implementation? That way users that don't need it can opt-out and get better performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    abortcontrollerIssues and PRs related to the AbortController API

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions