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

Optimize SmallPersistentVector.removeAll #133

Closed
wants to merge 1 commit into from

Conversation

mcpiroman
Copy link
Contributor

Don't copy new buffer when removing single element.
Don't copy unecessary elements from old buffer to the new one.

I'm concerned that now the newBuffer can escape, so it may not be stack allocated.

@mcpiroman
Copy link
Contributor Author

Closed in favor of #134

@mcpiroman mcpiroman closed this Nov 8, 2022
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.

None yet

1 participant