Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Compression
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Compression/lz4.h |
| Include | #include "Compression/lz4.h" |
| Source | /Engine/Source/Runtime/Core/Private/Compression/lz4.cpp |
LZ4int LZ4_compress_fast
(
const char * src,
char * dst,
int srcSize,
int dstCapacity,
int acceleration
)
Remarks
LZ4_compress_fast() : Same as LZ4_compress_default(), but allows selection of "acceleration" factor. The larger the acceleration value, the faster the algorithm, but also the lesser the compression. It's a trade-off. It can be fine tuned, with each successive value providing roughly +~3% to speed. An acceleration value of "1" is the same as regular LZ4_compress_default() Values <= 0 will be replaced by LZ4_ACCELERATION_DEFAULT (currently == 1, see lz4.c). Values > LZ4_ACCELERATION_MAX will be replaced by LZ4_ACCELERATION_MAX (currently == 65537, see lz4.c).