version detection which causes python to vomit a "UnicodeDecodeError: 'ascii'
codec can't decode byte 0xc2 in position 13333" error. reported by aja, thanks!
method 0: memcpy, "safe and portable"
method 1: __packed, "safe if your compiler supports it", used by default on most arches.
method 2: direct access. "portable but violate C standard" (er, so not really portable...)
"It can generate buggy code on targets which assembly generation depends on alignment.
But in some circumstances, it's the only known way to get the most performance (ie
GCC + ARMv6)".
The recent update to the port switched to method 2 if __ARM_ARCH_6K__ is defined,
but this causes a bus error on armv7. Change to forcing __packed instead (method 1)
to avoid the issue.
All worked out by, and diff from, Markus Hennecke.
LZ4 is a very fast lossless compression algorithm, providing compression
speed at 400 MB/s per core, scalable with multi-cores CPU. It also features
an extremely fast decoder, with speed in multiple GB/s per core, typically
reaching RAM speed limits on multi-core systems. The library is BSD-licensed.