Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zstd: Increment buffer offset #263

Merged
merged 2 commits into from
May 27, 2020
Merged

zstd: Increment buffer offset #263

merged 2 commits into from
May 27, 2020

Conversation

klauspost
Copy link
Owner

@klauspost klauspost commented May 27, 2020

Increment buffer offset when encoding without history.

Since it does not store history, we must offset e.cur to avoid false matches for next user.

Fixes the need for double resets to clear history.

Only allocate history when we need to encode more than 1 block.

Replaces #262

Increment buffer offset when encoding without history.

Since it does not store history, we must offset `e.cur` to avoid false matches for next user.

Fixes the need for double resets to clear history.

Prepares for #262
@klauspost klauspost merged commit 057ea20 into master May 27, 2020
@klauspost klauspost deleted the increment-buffer-offset branch May 27, 2020 13:19
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.

None yet

1 participant