Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA42FD0E3 for ; Fri, 12 Oct 2012 08:41:12 +0000 (UTC) Received: (qmail 58108 invoked by uid 500); 12 Oct 2012 08:41:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57855 invoked by uid 500); 12 Oct 2012 08:41:06 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 57055 invoked by uid 99); 12 Oct 2012 08:41:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2012 08:41:03 +0000 Date: Fri, 12 Oct 2012 08:41:03 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <1459831940.36551.1350031263152.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (DERBY-5947) Factor out common code from generated classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Knut Anders Hatlen created DERBY-5947: ----------------------------------------- Summary: Factor out common code from generated classes Key: DERBY-5947 URL: https://issues.apache.org/jira/browse/DERBY-5947 Project: Derby Issue Type: Improvement Components: SQL Reporter: Knut Anders Hatlen Assignee: Knut Anders Hatlen Priority: Minor There's some code that's added to all classes generated by Derby's query compiler. For example, there are three static fields that contain statistics used to check if the plan is stale, and there are getter and setter methods for each of the three fields. The fields and their accessor methods take up 468 bytes in every generated class. We should see if we can factor out some of this code so that there is a single shared copy in BaseActivation. Advantages would be: less complicated byte-code generation, less memory occupied by generated classes in the statement cache, smaller disk footprint for stored prepared statements. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira