and we found a big performace regression when we upgrade to v4.1.21 (from v4.0.2), after some test we narrow down the change from v4.1.0 -> v4.1.1.
It's seems that the code do BlockSizeIndex.Get() twice and only call Put() to return the buffer 1 time. It look like that the buffer from this stack is not released.
We use reader to decompress with no pooling object, it's some code like:
and we found a big performace regression when we upgrade to v4.1.21 (from v4.0.2), after some test we narrow down the change from v4.1.0 -> v4.1.1.
It's seems that the code do BlockSizeIndex.Get() twice and only call Put() to return the buffer 1 time. It look like that the buffer from this stack is not released.
Tried to fix it in this PR https://github.com/pierrec/lz4/pull/220, pls help to review