Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 25521 invoked from network); 14 May 2010 12:11:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 May 2010 12:11:04 -0000 Received: (qmail 84634 invoked by uid 500); 14 May 2010 12:11:04 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 84593 invoked by uid 500); 14 May 2010 12:11:04 -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 84586 invoked by uid 99); 14 May 2010 12:11:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 May 2010 12:11:04 +0000 X-ASF-Spam-Status: No, hits=-1427.1 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 May 2010 12:11:03 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4ECAgeS006283 for ; Fri, 14 May 2010 12:10:42 GMT Message-ID: <25068885.42311273839042927.JavaMail.jira@thor> Date: Fri, 14 May 2010 08:10:42 -0400 (EDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4661) Reduce size of encoding buffer for short character values In-Reply-To: <26537980.42131273838083327.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-4661: ----------------------------------- Issue & fix info: [Patch Available] > Reduce size of encoding buffer for short character values > --------------------------------------------------------- > > Key: DERBY-4661 > URL: https://issues.apache.org/jira/browse/DERBY-4661 > Project: Derby > Issue Type: Improvement > Components: JDBC > Affects Versions: 10.7.0.0 > Environment: Inserts using setXStream(int, Reader/InputStream, int/long) for short values on character columns > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Priority: Minor > Attachments: derby-4661-1a-reduce_encoding_bz.diff, derby-4661-1a-reduce_encoding_bz.stat > > > When inserting character values Derby converts from Java char to an on-disk encoding of UTF-8. To to this, the user stream is read and the resulting bytes after conversion are placed in a "translation buffer". The default size of the buffer is 32 KB. When inserting a lot of short values, the pressure on the Java garbage collector is unnecessary high and the allocation/GC also causes a somewhat higher CPU usage. > This effect of this issue can easily be reduced by sizing the buffer in the appropriate cases. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.