FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-128262: Allow specialization of calls to classes with __slots__ by Fidget-Spinner · Pull Request #128263 · python/cpython · GitHub

/ cpython Public

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

Merged
Fidget-Spinner merged 2 commits into
python:mainfrom
Fidget-Spinner:init_slots
Dec 31, 2024
Merged

gh-128262: Allow specialization of calls to classes with __slots__#128263
Fidget-Spinner merged 2 commits into
python:mainfrom
Fidget-Spinner:init_slots

Conversation

Fidget-Spinner commented Dec 25, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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!

Copy link
Copy Markdown
Member

This looks like a nice improvement

Comment thread Python/bytecodes.c

Copy link
Copy Markdown
Member

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

markshannon self-requested a review December 30, 2024 22:03
Fidget-Spinner merged commit 7ef4907 into python:main Dec 31, 2024
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL