Skip to content

WIP: Cache for obmalloc arena_map_is_used() #25130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

nascheme
Copy link
Member

@nascheme nascheme commented Apr 1, 2021

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
Copy link

github-actions bot commented May 2, 2021

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
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