nim-snappy/snappy
Etan Kissling d555230013 avoid unnecessary compression of short payloads
When using `framingFormatCompress`, the given payload is compressed to
determine whether its compressed form is shorter than its raw form.
For short payloads the Snappy compression will never be shorter, so it
is not necessary to compress such payloads. Instead, short payloads can
always be treated as uncompressable data. This patch optimizes for that.
2021-12-14 23:18:34 +07:00
..
crc32c.c working framing uncompress prototype 2020-04-01 22:35:57 +03:00
encoder.nim fixes fishy and dubious codes 2021-02-03 19:17:19 +07:00
framing.nim avoid unnecessary compression of short payloads 2021-12-14 23:18:34 +07:00
framing_format.txt renormalize *.txt EOL 2020-04-01 22:35:57 +03:00
types.nim Fix various integer overflow issues found through fuzzing 2020-08-18 23:11:42 +03:00