◐ Shell
reader mode source ↗
Skip to content

bpo-37812: Make the small-int alloc optimization unconditional.#15203

Closed
gnprice wants to merge 2 commits into
python:masterfrom
gnprice:pr-long-smallopt-always
Closed

bpo-37812: Make the small-int alloc optimization unconditional.#15203
gnprice wants to merge 2 commits into
python:masterfrom
gnprice:pr-long-smallopt-always

Conversation

@gnprice

@gnprice gnprice commented Aug 10, 2019

Copy link
Copy Markdown
Contributor

This optimization was added in 1993 (commit 842d2cc), and we've
been running with it ever since. I think at this point it's fair
to say that it's no longer experimental. That lets us simplify
the code by removing a number of #ifdefs.

In particular this will help us simplify the usage of CHECK_SMALL_INT.

https://bugs.python.org/issue37812

This optimization was added in 1993 (commit 842d2cc), and we've
been running with it ever since.  I think at this point it's fair
to say that it's no longer experimental.  That lets us simplify
the code by removing a number of `#ifdef`s.

In particular this will help us simplify the usage of CHECK_SMALL_INT.

@aeros aeros left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

Thanks for the PR.

I had a minor suggestion for the news entry:

@rhettinger rhettinger self-assigned this Aug 11, 2019
@rhettinger rhettinger closed this Aug 11, 2019
@gnprice gnprice deleted the pr-long-smallopt-always branch August 11, 2019 22:31
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.

5 participants