compressBlockFast

private fnsize_t compressBlockFast(const(ubyte)[] src, ubyte[] outBuf) @trusted @nogc nothrow

Compress a block of data using Snappy algorithm.

Parameters

inputInput data to compress.
outputOutput buffer (must be large enough).

Returns

Number of bytes written to output.

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.