From dev-return-15346-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Mar 02 20:03:53 2010 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 44175 invoked from network); 2 Mar 2010 20:03:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 20:03:53 -0000 Received: (qmail 4579 invoked by uid 500); 2 Mar 2010 20:03:48 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 4550 invoked by uid 500); 2 Mar 2010 20:03:48 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 4542 invoked by uid 99); 2 Mar 2010 20:03:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 20:03:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 20:03:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1F3D6234C4BA for ; Tue, 2 Mar 2010 20:03:27 +0000 (UTC) Message-ID: <735685007.14251267560207123.JavaMail.jira@brutus.apache.org> Date: Tue, 2 Mar 2010 20:03:27 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1548) Miscellaneous ClassMetaData performance improvements In-Reply-To: <1059934608.14141267559847375.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis updated OPENJPA-1548: --------------------------------- Attachment: OPENJPA-1548.test.patch Attaching a modified unit test that I was using as a micro benchmark. Pre change -- 2.023 sec Post change -- 1.319 sec > Miscellaneous ClassMetaData performance improvements > ---------------------------------------------------- > > Key: OPENJPA-1548 > URL: https://issues.apache.org/jira/browse/OPENJPA-1548 > Project: OpenJPA > Issue Type: Improvement > Components: performance > Reporter: Rick Curtis > Assignee: Rick Curtis > Attachments: OPENJPA-1548.test.patch > > > When doing some performance testing I found that I was able to marginally improve performance by refactoring a couple methods in ClassMetaData to allow the JVM to better optimize code paths. > Also, I found that we calculate the hash code every time ClassMetaData.hashCode is called, but it will never change. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.