fluo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keith-turner <...@git.apache.org>
Subject [GitHub] incubator-fluo issue #806: Consider caching Bytes to byte[] when creating mu...
Date Thu, 17 Nov 2016 20:27:49 GMT
GitHub user keith-turner opened an issue:

    https://github.com/apache/incubator-fluo/issues/806

    Consider caching Bytes to byte[] when creating mutations

    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](https://github.com/apache/incubator-fluo/blob/c896fc16bb6ab0af4df9e26554516a70c1ffa302/modules/core/src/main/java/org/apache/fluo/core/util/Flutation.java#L52)
is the code where this optimization could be made.
    


----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message