Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-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 D17176AAC for ; Fri, 8 Jul 2011 06:40:07 +0000 (UTC) Received: (qmail 50505 invoked by uid 500); 8 Jul 2011 06:40:07 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 50410 invoked by uid 500); 8 Jul 2011 06:39:59 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 50398 invoked by uid 99); 8 Jul 2011 06:39:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 06:39:57 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.57] (HELO smtp102.prem.mail.sp1.yahoo.com) (98.136.44.57) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Jul 2011 06:39:49 +0000 Received: (qmail 72916 invoked from network); 8 Jul 2011 06:39:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; b=TesnXXnqdWT4hXtPM3TpD6IMk46o6Ojb6IuuU9sTdLTvDqPjwYXoYP/2d0iiYmrWd+DuHWSL74B5sMZglVVZuUAVeVcmAO8hSLUSecziwCSjTqEwnyijYGuADrKh507HwpWgQH7DIkkbNHbvbkH1k5BQL5Bp3g9/aeL5IlXt39w= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1310107168; bh=mpJMg+udMlOR9Skh6LIjJIhyRf1nMUXWjtEQO4K7tDE=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; b=iJJx9sgBeIILC23i5TCVczEvOFeFuO4bHwt9zMDgfuhWt2ENRZHHgDB/uXQKTJoZ6vwABpX1EeXm+Kn19QV1ZkWxSW6oF0L+/TqkzbQsegVpUehMiZCrSnTVi4T4Dv2HBoipnovAormj2l8yu6IU04tHf91AznsAs7HT/UVrLgo= Received: from [10.0.1.4] (david_jencks@76.76.148.215 with plain) by smtp102.prem.mail.sp1.yahoo.com with SMTP; 07 Jul 2011 23:39:28 -0700 PDT X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: Oc5I3fAVM1kxVFRpkiXHlt6Tesxo5Swbz2nFqfbhoRXIGB. lRLsoNNe2KJJhygjPJ78JTjykzLt1gx8r.3PXlzbw5rGA7V.81E5ieb3I.di ONuZePNGrAXuu_yUuHV4ZUd7mNM9qfBkGUd0QVdx2gkT0cfz1rfNgjaDg31U PgPVjdlXnMpQJtl_Mb2kW84s_Gix1Gjs.WG3wuc5Q5Z7UHFb2dSO9kL40wus lcrcyAfp.DhiGARe9BUSus3mIil57IwiN3kS9VUr6eO1PMrSNgXLwrV5m.Pp IPZ48q4IYeHh4umZSabRdCBaX.zoAJ.DMV3LS5JYcwigCeTaIJCxLogyjU_m H5WrnPBEPE263N8ApaHtv829im61v5_JqNY9B1xdCjw-- X-Yahoo-Newman-Property: ymail-3 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Replace StringBuffer with StringBuilder in trunk ? From: David Jencks In-Reply-To: Date: Thu, 7 Jul 2011 23:39:27 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <5A80BFE9-87FF-4E10-AF2C-30DEE636F98C@yahoo.com> References: To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.1084) I have no objection, but I think I read that the compiler does some = analysis and replaces use of StringBuffer that it can prove is only = accessed by a single thread, by StringBuilder. So I think this will = only increase our code clarity, not the speed. And you should make sure all the string buffers are really used only by = one thread :-) -- the part that will take some time.... thanks david jencks On Jul 7, 2011, at 11:27 PM, Ivan wrote: > Hi, I am thinking to replace all the StringBuffer with StringBuilder = in the trunk codes, since it requires JRE 1.6. I knew that it might not = bring us too much performance improvement, while half loaf is better = than no bread. WDYT ? >=20 > --=20 > Ivan