Skip to content
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

Improve performance in _manylinux.py #869

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

cthoyt
Copy link

@cthoyt cthoyt commented Jan 31, 2025

This PR makes a few performance improvements:

  1. Reduces the doubled call to _is_compatible(arch, glibc_version)
  2. Moves the assignment of the tag variable directly into the yield, reducing memory allocation in case this is never used when _is_compatible(arch, glibc_version) is false
  3. Uses an assignment expression for dictionary lookup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant