lz4 / lz4-java

LZ4 compression for Java
Apache License 2.0
1.1k stars 253 forks source link

Are factory, compressor and decompressor thread-safe #82

Closed tenstriker closed 6 years ago

tenstriker commented 8 years ago

Hi, thanks for the library. I was wondering if following instances are thread-safe and can be declared as static or as class level and can be called from multiple threads safely.

val factory = LZ4Factory.fastestInstance() val compressor = factory.fastCompressor() val decompressor = factory.fastDecompressor() val decompressorSafe = factory.safeDecompressor()

odaira commented 7 years ago

Hi, they are all thread-safe.