lzlib: Define 'dictionary-size+match-length-limit'.
authorLudovic Courtès <ludo@gnu.org>
Thu, 16 Jan 2020 20:42:27 +0000 (21:42 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 16 Jan 2020 22:14:05 +0000 (23:14 +0100)
commit3597c0396b9bd6440c02462107c743c6aeb29672
tree20274331d7f3a3100cb771b6c729322266b23d37
parent584e46b1e03c18755ee4527164d751ddb20d8d18
lzlib: Define 'dictionary-size+match-length-limit'.

* guix/lzlib.scm (%compression-levels): Splice the rest of each element.
(dictionary-size+match-length-limit): New procedure.
(make-lzip-output-port, make-lzip-input-port/compressed): Use it.
* tests/lzlib.scm ("Bytevector of size relative to Lzip internal buffers (2 * dictionary)"):
Use 'dictionary-size+match-length-limit' instead of 'assoc-ref'.
guix/lzlib.scm
tests/lzlib.scm