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

Performance Improvements #3

Merged
merged 5 commits into from
Jul 29, 2023
Merged

Performance Improvements #3

merged 5 commits into from
Jul 29, 2023

Conversation

ibraheemdev
Copy link
Owner

  • Vector is now lock-free, writers race to allocate
  • Writers preallocate next bucket when previous is 7/8 full
  • Buckets start at size 32
  • The size of the Vec is significantly reduced

Closes #1.

@ibraheemdev ibraheemdev merged commit 3b2583c into master Jul 29, 2023
12 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.

Avoid contention when allocating buckets
1 participant