Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94AEB9586 for ; Mon, 25 Jun 2012 20:44:53 +0000 (UTC) Received: (qmail 17077 invoked by uid 500); 25 Jun 2012 20:44:53 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 17016 invoked by uid 500); 25 Jun 2012 20:44:53 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 16894 invoked by uid 99); 25 Jun 2012 20:44:53 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2012 20:44:53 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 896C1141E10 for ; Mon, 25 Jun 2012 20:44:52 +0000 (UTC) Date: Mon, 25 Jun 2012 20:44:52 +0000 (UTC) From: "Jukka Zitting (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <948659611.53151.1340657092567.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (OAK-152) More efficient CoreValues MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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