[
https://issues.apache.org/jira/browse/DIRECTMEMORY-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211293#comment-13211293
]
Michael André Pearce commented on DIRECTMEMORY-63:
--------------------------------------------------
As each key has to be unique, and a hash is a unique value representing that
key, by storing the object's hash is an instant win on size automatically.
> Investigate removing the need for an on heap map to store keys/pointers.
> ------------------------------------------------------------------------
>
> Key: DIRECTMEMORY-63
> URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-63
> Project: Apache DirectMemory
> Issue Type: Improvement
> Reporter: Michael André Pearce
>
> On performance testing and monitoring jvm heap allocation, it became clear
> that as the off heap elements increased so did the on heap used memory. This
> is because DirectMemory is storing keys and pointers in the heap meaning that
> the cache isn't fully off heap, and on heap memory will increase linearly
> with elements in the cache.
> An idea maybe is to look into using a key's hash for location on a separate
> single off heap buffer to store the main heaps pointers.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira