]> git.ipfire.org Git - thirdparty/haproxy.git/commit
IMPORT: slz: import slz into the tree
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Apr 2021 12:09:44 +0000 (14:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Apr 2021 13:50:41 +0000 (15:50 +0200)
commitab2b7828e2d24c16db3b487ae28ab2af27dd842f
treeb4c5c8f7aa7bb4c7b0935a7ba1aff015b8f8b082
parentaf6ae6395fef76b9b01123d33f0017b946e03c74
IMPORT: slz: import slz into the tree

SLZ is rarely packaged by distros and there have been complaints about
the CPU and memory usage of ZLIB, leading to some suggestions to better
address the issue by simply integrating SLZ into the tree (just 3 files).
See discussions below:

   https://www.mail-archive.com/haproxy@formilux.org/msg38037.html
   https://www.mail-archive.com/haproxy@formilux.org/msg40079.html
   https://www.mail-archive.com/haproxy@formilux.org/msg40365.html

This patch does just this, after minor adjustments to these files:
  - tables.h was renamed to slz-tables.h
  - tables.h had the precomputed tables removed since not used here
  - slz.c uses includes <import/slz*> instead of "slz*.h"

The slz commit imported here was b06c172 ("slz: avoid a build warning
with -Wimplicit-fallthrough"). No other change was performed either to
SLZ nor to haproxy at this point so that this operation may be replicated
if needed for a future version.
include/import/slz-tables.h [new file with mode: 0644]
include/import/slz.h [new file with mode: 0644]
src/slz.c [new file with mode: 0644]