Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider caching Bytes to byte[] when creating mutations #806

Open
keith-turner opened this issue Nov 17, 2016 · 0 comments
Open

Consider caching Bytes to byte[] when creating mutations #806

keith-turner opened this issue Nov 17, 2016 · 0 comments

Comments

@keith-turner
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant