Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Store actual ints, not pointers to them in the interpreter state.#29274

Merged
markshannon merged 1 commit into
python:mainpython/cpython:mainfrom
faster-cpython:small-ints-structs-not-pointersfaster-cpython/cpython:small-ints-structs-not-pointersCopy head branch name to clipboard
Oct 28, 2021
Merged

Store actual ints, not pointers to them in the interpreter state.#29274
markshannon merged 1 commit into
python:mainpython/cpython:mainfrom
faster-cpython:small-ints-structs-not-pointersfaster-cpython/cpython:small-ints-structs-not-pointersCopy head branch name to clipboard

Conversation

@markshannon

@markshannon markshannon commented Oct 28, 2021

Copy link
Copy Markdown
Member

Make the array of small ints just that. An array of ints, not an array of pointers.
In theory should be a tiny bit faster, and removes a possible failure mode when creating the interpreter state.

Performance is about the same seemingly slowing down floats a bit, possibly because the float free list is now further from the start of the interpreter state.

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.