Skip to content
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

free_list_remove is O(N) where N is the number of blocks on the list #2

Open
64 opened this issue Aug 3, 2022 · 0 comments
Open

free_list_remove is O(N) where N is the number of blocks on the list #2

64 opened this issue Aug 3, 2022 · 0 comments

Comments

@64
Copy link

64 commented Aug 3, 2022

Without benchmarking it, this is probably the biggest bottleneck of the design (with a large degree of fragmentation, iterating this list will become very slow, incurring a cache miss upon each traversal).

You could fix this by storing metadata outside of the allocated areas and using a doubly linked list to achieve O(1) removal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant