-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
In the current verison of the spec, we require the window size to be less than or equal to the minimum block size. The rationale for this isn't spelled out, we should work that into the spec. Brain-dumping it here for now:
The reason is that this avoids implementations needing to worry about the initial state of the ring buffer when computing a hash -- it can just be zeroed, because by the time a split is large enough to satisfy the size requirement, those initial contents will have slid out of the window, so can't affect the result. In typical usage the window size is much smaller than the minimum block size, so this doesn't seem like it has real drawbacks. It also makes the spec simpler.
Metadata
Metadata
Assignees
Labels
No labels