Skip to content

Use shift trick to reduce memcpy bottom-up-reheap.#205

Merged
agl-alexglopez merged 11 commits into
mainfrom
fewer-memcpy-reheap
Jun 15, 2026
Merged

Use shift trick to reduce memcpy bottom-up-reheap.#205
agl-alexglopez merged 11 commits into
mainfrom
fewer-memcpy-reheap

Conversation

@agl-alexglopez

Copy link
Copy Markdown
Collaborator

Shifting to determine lineage of the leaf on the special path reduces memcpy calls to 3xheight of tree to height of tree + 2.

@agl-alexglopez agl-alexglopez marked this pull request as ready for review June 15, 2026 17:17
@agl-alexglopez agl-alexglopez merged commit db33dd3 into main Jun 15, 2026
21 checks passed
@agl-alexglopez agl-alexglopez deleted the fewer-memcpy-reheap branch June 15, 2026 17:17
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

Successfully merging this pull request may close these issues.

1 participant