contention on static synchronized gen_codes() under high load
ymnk opened this issue · comments
I have not been allowed to open his or her name, but here is a quote from a message from anonymous
I'm exploring jzlib (version 1.1.1) as a replacement for the JDK deflater.
It seems that under high load (many threads deflating), there is a lot of
lock contention on the static synchronized method
com.jcraft.jzlib.Tree#gen_codes().
This is unexpected to me. I would not expect a single point of contention
in a compression/decompression library, as subsequent compression calls
should be completely independent.
a change is committed,
https://github.com/ymnk/jzlib/commit/26fa95d4fead7ce3d42aeb0b47cd21a8f287a237
The fix has been included in https://github.com/ymnk/jzlib/tree/1.1.2 .