Skip to content

Better Thread Parker #7

@ibraheemdev

Description

@ibraheemdev

The current parker implementation is quite naive as it is rarely used. It could be improved by using an intrusive linked list to avoid allocations.

We could also use OS futexes on architectures that support 64-bit futex values, or mixed-size atomic accesses. On x86 we might also be able use futex (see rust-lang/unsafe-code-guidelines#345), but unsure if we want to go there (also losing Miri support).

We could also just use parking-lot-core, but I don't think it's worth the dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance related improvements.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions