8000 gh-128262: Allow specialization of calls to classes with __slots__ by Fidget-Spinner · Pull Request #128263 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-128262: Allow specialization of calls to classes with __slots__ #128263

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

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

Fidget-Spinner
Copy link
Member
@Fidget-Spinner Fidget-Spinner commented Dec 25, 2024

Benchmark bm_float from pyperformance:

Mean +- std dev: [no_allow_slots] 107 ms +- 1 ms -> [allow_slots] 98.7 ms +- 0.8 ms: 1.08x faster

A significant improvement!

@markshannon
Copy link
Member

This looks like a nice improvement

@markshannon
Copy link
Member
markshannon 8000 commented Dec 30, 2024

Benchmarks shows a small improvement.
As expected, there is a significant improvement on the float benchmark. Mostly noise otherwise.

@markshannon markshannon self-requested a review December 30, 2024 22:03
@Fidget-Spinner Fidget-Spinner merged commit 7ef4907 into python:main Dec 31, 2024
59 checks passed
@Fidget-Spinner Fidget-Spinner deleted the init_slots branch December 31, 2024 04:24
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0