Skip to content

selector _BaseSelectorImpl._key_from_fd reimplements .get() #106554

Closed
@bdraco

Description

@bdraco

selector _BaseSelectorImpl._key_from_fd reimplements .get()

def _key_from_fd(self, fd):

This internal method isn't documented https://docs.python.org/3/library/selectors.html which means it likely can be replaced with .get() which would reduce runtime in the select loops

current:
Screenshot 2023-07-08 at 3 32 38 PM

removed:
Screenshot 2023-07-08 at 3 32 34 PM

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions