Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B86A891DD for ; Thu, 15 Mar 2012 16:43:21 +0000 (UTC) Received: (qmail 79285 invoked by uid 500); 15 Mar 2012 16:43:21 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 79203 invoked by uid 500); 15 Mar 2012 16:43:21 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 79193 invoked by uid 99); 15 Mar 2012 16:43:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 16:43:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.161.171 as permitted sender) Received: from [209.85.161.171] (HELO mail-gx0-f171.google.com) (209.85.161.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2012 16:43:13 +0000 Received: by ggcs5 with SMTP id s5so3981461ggc.30 for ; Thu, 15 Mar 2012 09:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4xtp6zVkw2MPyTP0YYGEd08p8h4QeQ1y2x5GloGyIuU=; b=HzQUS5twPV4G8UB2RazQU6r2d5fWWG8bKcCnMjIn5bbWNPM2oa86B/Us+ezer1Q9Uw kGkbnXle/uHwgnijgpcHR9jqWZ3qyrW0si6CFwjqu6IBLlyr+CqJNbiHEPtKsgbTHnqp N4YE81cF7KCcjxfGnV+eOJBAnZoxQxxRwN6X6FAbAyQLZ4Yt1DwBWP3JQmcQDHK2VvVe SzKhZnTnfNt7yLXR0YZJ/qKaNeELRP7lFjBTcnYMxI0H5YFklMnTUvhqrX+1Pb/81Qhs apVT9Mq8PeaGsB49ncDRTvx+lTZl8jhXA8uvBj4EK7PdSdsfxSsGWFfHI2s18Hs4SvjL 2qYA== MIME-Version: 1.0 Received: by 10.60.22.163 with SMTP id e3mr9080804oef.34.1331829772555; Thu, 15 Mar 2012 09:42:52 -0700 (PDT) Received: by 10.182.225.99 with HTTP; Thu, 15 Mar 2012 09:42:52 -0700 (PDT) In-Reply-To: <4F62145D.1030308@apache.org> References: <4F61E407.6030009@apache.org> <4F61EBE3.2080104@apache.org> <4F62145D.1030308@apache.org> Date: Thu, 15 Mar 2012 16:42:52 +0000 Message-ID: Subject: Re: [CSV] Performance From: sebb To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 15 March 2012 16:10, Emmanuel Bourg wrote: > Le 15/03/2012 16:45, sebb a =E9crit : > > >> So I then tried hauling the format method calls out of the loops into >> final local variables. >> This improves performance (slightly) in both client and server mode. > > > Could you show some code please? Ditto. > I'm unable to reproduce this. I used local > variables in simpleTokenLexer and the performance degrades by 14% (HotSpo= t > server VM, JDK 6u31, Core 2 Duo). I also used local vars in the other methods. See http://people.apache.org/~sebb/CSV/ > Emmanuel Bourg > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org