fluo icon indicating copy to clipboard operation
fluo copied to clipboard

Consider caching Bytes to byte[] when creating mutations

Open keith-turner opened this issue 8 years ago • 0 comments

While working on #804 I realized that in some cases caching Bytes to byte[] conversion would probably be faster than always allocating new byte array in some situations. This is mainly when there is small set of columns(or a small set of families or qualifiers). When all of the columns are unique, trying to cache could hurt performance. So the code would need to adapt to this situation and possible stop using the cache when the hit rate is low.

Flutation line 52 is the code where this optimization could be made.

keith-turner avatar Nov 17 '16 20:11 keith-turner