Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 85118 invoked from network); 22 Sep 2006 21:42:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2006 21:42:09 -0000 Received: (qmail 90718 invoked by uid 500); 22 Sep 2006 21:42:09 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 90507 invoked by uid 500); 22 Sep 2006 21:42:08 -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 90498 invoked by uid 99); 22 Sep 2006 21:42:08 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2006 14:42:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:53870] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 44/66-06791-EA854154 for ; Fri, 22 Sep 2006 14:42:06 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 994587142F5 for ; Fri, 22 Sep 2006 21:38:24 +0000 (GMT) Message-ID: <10472178.1158961104625.JavaMail.jira@brutus> Date: Fri, 22 Sep 2006 14:38:24 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1876) Investigate overhead of JDBC layer and compiled activation code for simple embedded read-only, forward ResultSets In-Reply-To: <23291269.1158882142270.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1876?page=comments#action_12437015 ] Knut Anders Hatlen commented on DERBY-1876: ------------------------------------------- To get an impression of the allocation/gc cost for the statistics, I made all the runtime statistics fields in BasicNoPutResultSetImpl, RowResultSet and UnionResultSet static (these are the ResultSet classes used by the query in derby1867.java). I ran derby1876.java ten times with and ten times without the changes. On average, the test used 15% less time with static fields on Solaris, JVM 1.6. On FreeBSD, JVM 1.5, the time spent was 20% lower with static fields. > Investigate overhead of JDBC layer and compiled activation code for simple embedded read-only, forward ResultSets > ----------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1876 > URL: http://issues.apache.org/jira/browse/DERBY-1876 > Project: Derby > Issue Type: Improvement > Components: JDBC, Performance > Reporter: Daniel John Debrunner > Priority: Minor > Attachments: derby1862.java, derby1876.java > > > For simple ResultSet usage like: > ResultSet rs = ps.executeQuery(); > while (rs.next()) { > rs.getInt(1); > rs.getInt(2); > rs.getInt(3); > } > rs.close(); > it would be interesting to see how much overhead could be removed with simple changes, or possibly removed if there was a simple ResultSet implementation for forward only, read-only ResultSet, and the more complete implementation for all other ResultSet types such as updateable and/or scrollable. Has introducing updateable ResultSets, for example, degraded the performance of read-only ResultSets? Could code be changed so that a typical read-only Resultset is not affected by the code required for richer ResultSets? -- 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