db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DERBY-5947) Factor out common code from generated classes
Date Fri, 12 Oct 2012 08:41:03 GMT
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

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

View raw message