Github user manishgupta88 commented on the issue:
https://github.com/apache/carbondata/pull/2872
@kumarvishal09 ...In general, instead of passing the `ReusableDataBuffer`
instance everwhere can we make this class singleton and create a `byte[]` pool
and use the concept of object pool. This will help in following ways:
1. It will avoid modification of too many method/code modifications as
wherever required we can take the object from pool and make the code simpler.
2. Currentlt it is being used for filling hthe decompressed data to avoid
array copy. In future it will be easier to make use of the reusable buffer
object pool wherever required without making too many changes in the code.
We can discuss more on this and decide.
---