Skip to content
Snippets Groups Projects
Commit bd5bf2a1 authored by Scott Vokes's avatar Scott Vokes
Browse files

Lookahead size must now be < window size, not <= .

Using a lookahead size equal to the window size could previously lead to
an infinite loop (discovered and fixed by @unixdj, thanks). There really
isn't any benefit to having a lookahead size that large, as it only
applies when the entire input stream is the same. In all other cases, it
makes the compression ratio worse.

Closes #20.
parent d092d411
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment