You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Sergey Evdokimov (JIRA)" <ji...@apache.org> on 2015/03/04 16:50:04 UTC

[jira] [Commented] (IGNITE-288) Refactor grid cache entry extras

    [ https://issues.apache.org/jira/browse/IGNITE-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14347044#comment-14347044 ] 

Sergey Evdokimov commented on IGNITE-288:
-----------------------------------------

This approach increases memory usage, because there are overhead for array, overhead for integer that describe array content, overhead for instance of java.lang.Long class for ttl and expireTime (now ttl and expireTime is a 'long' field).

> Refactor grid cache entry extras
> --------------------------------
>
>                 Key: IGNITE-288
>                 URL: https://issues.apache.org/jira/browse/IGNITE-288
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Sergey Evdokimov
>            Assignee: Sergey Evdokimov
>             Fix For: sprint-2
>
>
> I think all our extras classes can be replaced with a single class having
> int and array. int will contain 8 of 4bits blocks describing what is stored in each array element.
> example (each digit is 4bits block turned to decimal):
> 0000 0001 - ttl and mvcc at index 0
> 0000 0031 - readers at index 1, ttl and mvcc at index 0
> This way we can move:
> rmts from distributed cache entry
> readers from dht cache entry



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)