Skip to content

Round minimum queue capacity up to a power of two#56

Merged
apfitzge merged 1 commit intoanza-xyz:mainfrom
apfitzge:round-up-min-file-size
Mar 10, 2026
Merged

Round minimum queue capacity up to a power of two#56
apfitzge merged 1 commit intoanza-xyz:mainfrom
apfitzge:round-up-min-file-size

Conversation

@apfitzge
Copy link
Contributor

Problem

  • Interface is odd if the passed capacity is not a power of two
    • we calculate minimum file size, then we round down later. So it can result in user getting a smaller queue than requested

Changes

  • Round up to next power of two in minimum_file_size fns

@apfitzge apfitzge requested a review from OliverNChalk March 10, 2026 20:08
@apfitzge apfitzge merged commit 6e26410 into anza-xyz:main Mar 10, 2026
2 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.

2 participants