Skip to content

Commit

Permalink
raise number of tokens
Browse files Browse the repository at this point in the history
Gzip is producing bigger blocks, possible only if remembers more tokens.
Putting this to the zlib max.
  • Loading branch information
ianic committed Jan 19, 2024
1 parent de4541c commit cb567b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/consts.zig
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
pub const block = struct {
pub const tokens = 1 << 14;
// in zlib this depends on memlevel
// 6 + memlevel, where default memlevel is 8 and max 9
// that gives 14 or 15 bits
pub const tokens = 1 << 15;
};

pub const match = struct {
Expand Down

0 comments on commit cb567b5

Please sign in to comment.