Skip to content

Add rationale re: requiring W <= Smin #11

@zenhack

Description

@zenhack

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions