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 storage location selection #135

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

n8maninger
Copy link
Member

@n8maninger n8maninger commented Aug 3, 2023

Refactors the database queries that select empty storage locations when writing new sectors to disk. The speedup is particularly noticeable as the volume starts to fill.

Old:           6292569 ns/op            102448 sectors           18586 B/op        428 allocs/op
New:            232861 ns/op            387636 sectors           17135 B/op        466 allocs/op

@n8maninger n8maninger merged commit d3538d1 into master Aug 3, 2023
6 checks passed
@n8maninger n8maninger deleted the nate/optimize-empty-location branch August 3, 2023 23:58
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