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

WIP: Cache for obmalloc arena_map_is_used()#25130

Closed
nascheme wants to merge 4 commits into
python:mainpython/cpython:mainfrom
nascheme:arena_map_cachenascheme/cpython:arena_map_cacheCopy head branch name to clipboard
Closed

WIP: Cache for obmalloc arena_map_is_used()#25130
nascheme wants to merge 4 commits into
python:mainpython/cpython:mainfrom
nascheme:arena_map_cachenascheme/cpython:arena_map_cacheCopy head branch name to clipboard

Conversation

@nascheme

@nascheme nascheme commented Apr 1, 2021

Copy link
Copy Markdown
Member

This is an experiment to add a small cache for the result of the arena_map_is_used() function. This function is performance critical. It is possible that using a cache could be a faster approach. Also, it could allow us to expand the arena tree map to cover a larger address space (e.g. full 64-bits) or to shrink its memory usage.

This needs a lot more polish before it is ready and even then it would be questionable if it's worth the extra complexity. Based on some preliminary benchmarking, it seems about as fast as without the cache. With some further optimization, I suspect it could be faster.

@github-actions

github-actions Bot commented May 2, 2021

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 May 2, 2021
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Aug 6, 2022
@serhiy-storchaka serhiy-storchaka marked this pull request as draft January 17, 2024 20:08
@nascheme

Copy link
Copy Markdown
Member Author

Closing, not worth doing, IMHO.

@nascheme nascheme closed this Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO-NOT-MERGE performance Performance or resource usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

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