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

Smoother column resize #42

Merged
merged 1 commit into from
Dec 24, 2021
Merged

Smoother column resize #42

merged 1 commit into from
Dec 24, 2021

Conversation

kelindar
Copy link
Owner

This PR makes the capacity resize of columns and bitmaps smoother, using a similar function to Go slices, where after 256 elements the capacity increases by ~25%. This is useful for large size collections, where next power of two would potentially generate a lot of wasted memory.

@kelindar kelindar merged commit bf13e8b into main Dec 24, 2021
@kelindar kelindar deleted the resize branch December 24, 2021 12:29
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