Fast single-pass compression core using raw pointers.
Fuses match-finding and encoding to eliminate intermediate allocations and reduce function call overhead. Uses malloc'd uint hash table (256 KB instead of 512 KB size_t) to reduce cache pressure.
size_t compressBlockFast(const(ubyte)[] src, ubyte[] outBuf) @trusted @nogc nothrowCompress a block of data using Snappy algorithm.
input | Input data to compress. |
output | Output buffer (must be large enough). |
Fast single-pass compression core using raw pointers.
Fuses match-finding and encoding to eliminate intermediate allocations and reduce function call overhead. Uses malloc'd uint hash table (256 KB instead of 512 KB size_t) to reduce cache pressure.
Params: src = Input data. outBuf = Pre-allocated output buffer (must be large enough).
Returns: Number of bytes written to output.