snappy-java icon indicating copy to clipboard operation
snappy-java copied to clipboard

BitShuffle extension interface, supporting the passing of a specified output array.

Open tianjiqx opened this issue 1 year ago • 0 comments

To avoid repeated allocation of temporary space, we hope to add an interface to pass a specified reusable output array for the unshuffle operation.

For example:

long[] unshuffled = BitShuffle.unshuffleLongArray(decompressed);
System.arraycopy(unshuffled, 0, out, 0, out.length);

=>
BitShuffle.unshuffleLongArray(decompressed, out);

tianjiqx avatar Oct 11 '24 03:10 tianjiqx