Skip to content

Adopts dual-scale encoding for chunk size#118

Merged
hellobertrand merged 3 commits intomainfrom
feat/block-size
Feb 28, 2026
Merged

Adopts dual-scale encoding for chunk size#118
hellobertrand merged 3 commits intomainfrom
feat/block-size

Conversation

@hellobertrand
Copy link
Owner

Implements a "Dual Scale" mechanism for the chunk size code in the file header. This uses the most significant bit to select between a 4 KB or 64 KB multiplier, significantly expanding the range of supported block sizes up to approximately 8 MB.

Explicitly defines a base value of zero (bits 0-6) to map to the minimum block size of 4 KB, improving control over small blocks. This enhancement improves flexibility for various use cases and data scales.

Updates documentation to reflect the new encoding scheme and its interpretation.

Implements a "Dual Scale" mechanism for the chunk size code in the file header. This uses the most significant bit to select between a 4 KB or 64 KB multiplier, significantly expanding the range of supported block sizes up to approximately 8 MB.

Explicitly defines a base value of zero (bits 0-6) to map to the minimum block size of 4 KB, improving control over small blocks. This enhancement improves flexibility for various use cases and data scales.

Updates documentation to reflect the new encoding scheme and its interpretation.
@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Refines the documentation for the chunk size code, making it more concise and easier to understand.

Replaces verbose calculation examples with direct summaries of the effective block size ranges for both fine and large scales in the whitepaper. Also standardizes variable notation in the format documentation.
@hellobertrand hellobertrand merged commit 0714b3c into main Feb 28, 2026
44 checks passed
@hellobertrand hellobertrand deleted the feat/block-size branch February 28, 2026 14:35
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