Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 61594 invoked from network); 1 Sep 2006 22:39:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2006 22:39:48 -0000 Received: (qmail 47169 invoked by uid 500); 1 Sep 2006 22:39:47 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 47124 invoked by uid 500); 1 Sep 2006 22:39:47 -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 47115 invoked by uid 99); 1 Sep 2006 22:39:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2006 15:39:47 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Sep 2006 15:39:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7D27341000B for ; Fri, 1 Sep 2006 22:36:23 +0000 (GMT) Message-ID: <5910243.1157150183510.JavaMail.jira@brutus> Date: Fri, 1 Sep 2006 15:36:23 -0700 (PDT) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1700) Remove passing of closeCleanup method to every ResultSet type since only the top ResultSet requires it. In-Reply-To: <9865333.1155673393921.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1700?page=all ] Daniel John Debrunner updated DERBY-1700: ----------------------------------------- Attachment: derby1700_diff_p1.txt Patch that removes the generation of the close cleanup method in the generated class. Always pass null to the ResultSetFactoryMethods to indicate no cleanup method (so none is ever called) Cleanup method is not required as the execute method has generated code to reset/forgt the current time handling. Only benefit is to null out three objects for possible early garbage collection. This is a first patch using incremental development. I will commit soon, all tests have passed. > Remove passing of closeCleanup method to every ResultSet type since only the top ResultSet requires it. > ------------------------------------------------------------------------------------------------------- > > Key: DERBY-1700 > URL: http://issues.apache.org/jira/browse/DERBY-1700 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: Daniel John Debrunner > Assigned To: Daniel John Debrunner > Priority: Minor > Attachments: derby1700_diff_p1.txt > > > A UNION node will generate byte code to call this method: > NoPutResultSet getUnionResultSet(NoPutResultSet source1, > NoPutResultSet source2, > Activation activation, > int resultSetNumber, > double optimizerEstimatedRowCount, > double optimizerEstimatedCost, > GeneratedMethod closeCleanup) > The closeCleanup method is passed in as null for all result sets in a tree except the top one. Instead of passing it on each new result set, it would be much more efficient to have a setCloseMethod() that is only called once for the top result set. Could also look at having an closeCleanup method in the interface and call it directly, rather than through reflection. > This applies to any node that takes a closeCleanup method. > Split out from DERBY-766 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira