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

Pre-allocate array in Children() for mmap and add benchmark. #133

Merged
merged 4 commits into from
Feb 14, 2023

Conversation

nibbleshift
Copy link
Contributor

Pre-allocate mmap in Container.Children() and add Benchmark.

Top: main, Bottom: main \w Pre-allocate patch:
image

@nibbleshift
Copy link
Contributor Author

nibbleshift commented Jan 14, 2023

Fixed an alloc/append issue noticed by Mihai. Instead of appending, use direct assignment for mmap:

New benchmarks:
Top: main, Bottom: main \w Pre-allocate patch:
image

@Jeffail Jeffail merged commit e5b2e65 into Jeffail:master Feb 14, 2023
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