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

Explicitly allocate memory for slices #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hollowness-inside
Copy link

@hollowness-inside hollowness-inside commented Apr 23, 2024

Allocate memory for slices explicitly. This eliminates unnecessary memory allocations and copies when appending to the slice.

@hollowness-inside hollowness-inside changed the title Explicitly allocate memory for slice Explicitly allocate memory for slices Apr 23, 2024
@DylanMeeus
Copy link
Owner

This looks good as is, thank you for the commits! I will check locally before merging in ~2 weeks (travelling without any machine to check).

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.

3 participants