Skip to content

mempool3: optimize slot pool lookup with O(log N) binary search#59

Open
shruti2522 wants to merge 1 commit intoboa-dev:mainfrom
shruti2522:mem-opt
Open

mempool3: optimize slot pool lookup with O(log N) binary search#59
shruti2522 wants to merge 1 commit intoboa-dev:mainfrom
shruti2522:mem-opt

Conversation

@shruti2522
Copy link
Contributor

@shruti2522 shruti2522 commented Mar 23, 2026

Replaced O(N) array scan in free_slot with O(log N) binary search via new sorted_ranges index. doubled max_recycled pages to retain empty memory, bypassing expensive OS mapping syscalls during allocations. Also, increased page size to 256KB, cutting total pool count by 4x

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

Labels

None yet

1 participant