Skip to content

bpo-45575: Use a less ad-hoc approach to freelists, and use them for int and float freelists.#29165

Closed
markshannon wants to merge 8 commits into
python:mainfrom
faster-cpython:dry-freelists
Closed

bpo-45575: Use a less ad-hoc approach to freelists, and use them for int and float freelists.#29165
markshannon wants to merge 8 commits into
python:mainfrom
faster-cpython:dry-freelists

Conversation

@markshannon

@markshannon markshannon commented Oct 22, 2021

Copy link
Copy Markdown
Member

About ~1% faster

The speedup is modest, but this has potential for further improvement when better integrated with the underlying allocator.

https://bugs.python.org/issue45575

@markshannon markshannon changed the title Use a less ad-hoc approach to freelists, and use them for int and float freelists. bpo-45575: Use a less ad-hoc approach to freelists, and use them for int and float freelists. Oct 22, 2021
@markshannon markshannon added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 24, 2021
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @markshannon for commit d1ed5f6 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Oct 24, 2021
Comment thread Include/internal/pycore_pymem.h Outdated
/* Free lists.
*
* Free lists have a pointer to their first entry and
* the amunt of space available allowing fast checks

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.

Suggested change
* the amunt of space available allowing fast checks
* the amount of space available allowing fast checks

@markshannon

Copy link
Copy Markdown
Member Author

Less of a speedup when adding multiple-interpreter support

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Nov 25, 2021
@markshannon

Copy link
Copy Markdown
Member Author

Closing this, as we should probably work towards integrating freelists with the memory allocator.

@iritkatriel

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants