Skip to content

poll: Optimize locks and allocations in the critical path #1701

@jasta

Description

@jasta

The poll implementation in #1687 makes liberal use of locks and allocations in closed_raw_fds and pending_removal in fairly hot code paths that can be optimized away. There are some dead lock and efficiency concerns as identified here: #1687 (comment) and #1687 (comment) .

These optimizations may prove significant but can be punted until we get the code stable and proven to work well in a variety of environments. Further, it'd be nice to have some new tests that make sure we don't regress by optimizing the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions