Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 74789 invoked from network); 16 Mar 2008 05:04:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2008 05:04:08 -0000 Received: (qmail 36850 invoked by uid 500); 16 Mar 2008 05:04:04 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 36797 invoked by uid 500); 16 Mar 2008 05:04:04 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 36748 invoked by uid 99); 16 Mar 2008 05:04:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Mar 2008 22:04:04 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Mar 2008 05:03:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 44648234C09B for ; Sat, 15 Mar 2008 22:02:24 -0700 (PDT) Message-ID: <1976758650.1205643744279.JavaMail.jira@brutus> Date: Sat, 15 Mar 2008 22:02:24 -0700 (PDT) From: "Dave Brosius (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1479) [PATCH] don't use the reflective form of {Collection}.toArray MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [PATCH] don't use the reflective form of {Collection}.toArray ------------------------------------------------------------- Key: JCR-1479 URL: https://issues.apache.org/jira/browse/JCR-1479 Project: Jackrabbit Issue Type: Improvement Components: jackrabbit-core Affects Versions: core 1.4.1 Reporter: Dave Brosius Priority: Trivial Fix For: core 1.4.2 Attachments: no_reflective_toarray.patch Passing a prototype array into {Collection}.toArray that is too small makes the toArray call expend alot of effort using reflection to do it's job. It is more performant to just pass in a correctly sized prototype. This patch does this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.