xerial / snappy-java

Snappy compressor/decompressor for Java
Apache License 2.0
1.03k stars 231 forks source link

let ByteBuffer read 4 bytes as int in single call #594

Closed bokken closed 3 weeks ago

bokken commented 1 month ago

small performance improvement reading crc32c values in SnappyFramedInputStream by allowing the ByteBuffer to do the work. As these are direct ByteBuffer instances, this means only a single call across native boundary.

bokken commented 1 month ago

@xerial any chance to review?