Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 83533 invoked from network); 11 Oct 2007 21:42:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2007 21:42:04 -0000 Received: (qmail 5984 invoked by uid 500); 11 Oct 2007 21:41:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5940 invoked by uid 500); 11 Oct 2007 21:41:50 -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 5927 invoked by uid 99); 11 Oct 2007 21:41:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 14:41:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 21:42:02 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5776D71423E for ; Thu, 11 Oct 2007 14:40:52 -0700 (PDT) Message-ID: <14955007.1192138852356.JavaMail.jira@brutus> Date: Thu, 11 Oct 2007 14:40:52 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-3004) Get rid of the finalizer in EmbedResultSet In-Reply-To: <12831955.1187077532418.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 [ https://issues.apache.org/jira/browse/DERBY-3004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen closed DERBY-3004. ------------------------------------- > Get rid of the finalizer in EmbedResultSet > ------------------------------------------ > > Key: DERBY-3004 > URL: https://issues.apache.org/jira/browse/DERBY-3004 > Project: Derby > Issue Type: Improvement > Components: JDBC, Performance > Affects Versions: 10.3.1.4 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Fix For: 10.4.0.0 > > Attachments: d3004.diff, d3004.stat > > > Finalizers make object allocation and garbage collection more expensive and should be avoided for object types that are frequently allocated. EmbedResultSet has a finalize() method and is frequently allocated for many types of load. The following comment was posted on DERBY-1876: > By commenting out the finalize() method in EmbedResultSet, the time to run the test on my laptop is reduced from ~3 seconds to ~1.3 seconds (OpenSolaris, Sun Java SE 6). Since the finalizer is a no-op if the activation isn't single-use, I think we should investigate whether there are ways to avoid this cost for ResultSets that don't need the finalizer. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.