jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-152) More efficient CoreValues
Date Mon, 25 Jun 2012 20:44:52 GMT
Jukka Zitting created OAK-152:

             Summary: More efficient CoreValues
                 Key: OAK-152
                 URL: https://issues.apache.org/jira/browse/OAK-152
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: core
            Reporter: Jukka Zitting
            Assignee: Jukka Zitting
            Priority: Minor

The current CoreValueImpl needs two Java objects per value, one for the CoreValueImpl instance
and another for the referenced value object. It also needs an extra int field to store the
value type.

Type-specific value classes could avoid the type field and the extra value object for the
primitive types (long, double, boolean).

We could further reduce memory overhead by maintaining a set of flyweight instances of commonly
occurring values (small numbers, common JCR names, etc.).

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


View raw message