Use exact capacities for SingleSliceStorage #13
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
worm-blossom/bab_rs#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SingeSliceStorage currently uses a function that does a conservative approximation of how much capacity it needs. It would be more efficient to compute the exact length in bytes of the baseline verifiable slice stream for a given slice in strings of a given length. The old approximate function can "simply" be updated to do the precise computation, and then renamed to
length_of_verifiable_stream(and the "at least" in the doc comment should change to "exactly" or something like that).