Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 13626 invoked from network); 29 Mar 2007 15:27:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2007 15:27:48 -0000 Received: (qmail 37647 invoked by uid 500); 29 Mar 2007 15:27:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 37589 invoked by uid 500); 29 Mar 2007 15:27:53 -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 37575 invoked by uid 99); 29 Mar 2007 15:27:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 08:27:53 -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, 29 Mar 2007 08:27:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8ED63714066 for ; Thu, 29 Mar 2007 08:27:25 -0700 (PDT) Message-ID: <21668645.1175182045581.JavaMail.jira@brutus> Date: Thu, 29 Mar 2007 08:27:25 -0700 (PDT) From: "Dyre Tjeldvoll (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2114) Let Clock embed a HashMap rather than inherit from Hashtable In-Reply-To: <20300563.1164288722011.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-2114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dyre Tjeldvoll updated DERBY-2114: ---------------------------------- Attachment: derby-2114.currentsize.v1.stat derby-2114.currentsize.v1.diff Attaching a follow-up patch (derby-2114.currentsize.v1) which provides an unsynchronized version of currentSize() which can be used inside synchronized regions to avoid double synchronization. > Let Clock embed a HashMap rather than inherit from Hashtable > ------------------------------------------------------------ > > Key: DERBY-2114 > URL: https://issues.apache.org/jira/browse/DERBY-2114 > Project: Derby > Issue Type: Improvement > Components: Performance > Affects Versions: 10.2.1.6 > Reporter: Dyre Tjeldvoll > Assigned To: Dyre Tjeldvoll > Priority: Trivial > Fix For: 10.3.0.0 > > Attachments: derby-2114.currentsize.v1.diff, derby-2114.currentsize.v1.stat, derby-2114.v1.diff, derby-2114.v1.stat, derby-2114.v2.diff, derby-2114.v2.stat > > > Clock currently inherits from Hashtable, but the use of Hashtable is really an implementation detail that would benefit from being hidden as private member. All access to the hashtable happens inside sychronized blocks so it is safe to substitute a HashMap. This change appears to trigger a small increase in throughput, as measured by the average TPS number obtained by running the select client from DERBY-1961 repeatedly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.