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

Micro-optimize cache deserialization (fixup) #18303

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Dec 17, 2024

Mypyc is bad at compiling tuple unpacking, so this should be faster, based on a microbenchmark I created. Also fewer tuple objects need to be allocated and freed.

The impact is probably too small to be measured in a real workload, but every little helps.

Mypyc is bad at compiling tuple unpacking, so this should be faster,
based on a microbenchmark I created. Also fewer tuple objects need
to be allocated and freed.

The impact is probably too small to be measured in a real workload,
but every little helps.
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit 7e79c4a into master Dec 18, 2024
19 checks passed
@hauntsaninja hauntsaninja deleted the faster-fixup-minor branch December 18, 2024 02:18
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.

2 participants