Skip to content
Snippets Groups Projects
  • Scott Vokes's avatar
    bd5bf2a1
    Lookahead size must now be < window size, not <= . · bd5bf2a1
    Scott Vokes authored
    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.
    bd5bf2a1
    History
    Lookahead size must now be < window size, not <= .
    Scott Vokes authored
    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.