Skip to content

btreeg: fix allocation in DeleteRange#51

Merged
tidwall merged 1 commit intotidwall:masterfrom
canibeanartisttoo:arjun/fix_alloc_again
Aug 6, 2025
Merged

btreeg: fix allocation in DeleteRange#51
tidwall merged 1 commit intotidwall:masterfrom
canibeanartisttoo:arjun/fix_alloc_again

Conversation

@arjunnair1997
Copy link
Contributor

@arjunnair1997 arjunnair1997 commented Aug 6, 2025

I missed this in the previous pr, but the List needs to be a pointer so that it can detect changes in the backing array.

Tested this in our benchmarks, and it got rid of the allocs.

@tidwall
Copy link
Owner

tidwall commented Aug 6, 2025

No problem. I’ll take a look in the morning.

@tidwall
Copy link
Owner

tidwall commented Aug 6, 2025

LGTM 👍

@tidwall tidwall merged commit 9ce5205 into tidwall:master Aug 6, 2025
3 checks passed
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.

2 participants