From dev-return-35922-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Wed Jan 07 14:56:06 2009 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 37545 invoked from network); 7 Jan 2009 14:56:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2009 14:56:06 -0000 Received: (qmail 18230 invoked by uid 500); 7 Jan 2009 14:56:05 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 17750 invoked by uid 500); 7 Jan 2009 14:56:04 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 17739 invoked by uid 99); 7 Jan 2009 14:56:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2009 06:56:04 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aleksey.shipilev@gmail.com designates 209.85.198.246 as permitted sender) Received: from [209.85.198.246] (HELO rv-out-0708.google.com) (209.85.198.246) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2009 14:55:58 +0000 Received: by rv-out-0708.google.com with SMTP id k29so9749073rvb.0 for ; Wed, 07 Jan 2009 06:55:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=9H9siAf8wOX/66Lm5XmRh1xzkNLwk7pEn5yGR7TUnnA=; b=MZnfu07vyAakr+8dpRt0aOEgpdH70GcuwSUZ72WdzfCKVfi3OIGR+eJesznH+jbXBs qCeUqy/Z4qVOtYPXSjzlc5SMAEM4ewn9eWcV26mxcqzsMoWMAYyK4aF472orDZYvXJjA I7XQKTHZUs5V+cO2tnBLhaNdtzW3uLugES3ZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FWwzF45M9tYRmvGlzyKMCPwsGukMk2YvL1J7r2vK//MT+zwN6tLWWR5JMpyb4pWzZ5 29MnojT+EoflIzZfnVG0mQLZn1Wg/VKrnH+qmIRRMX1QkTUTu+KFL5iS3V9qDio0/wpy UD0biJZyNMs3TdQC6JzNmhuBKlPMfE7KNG+9s= Received: by 10.141.151.18 with SMTP id d18mr11556024rvo.134.1231340137896; Wed, 07 Jan 2009 06:55:37 -0800 (PST) Received: by 10.141.198.7 with HTTP; Wed, 7 Jan 2009 06:55:37 -0800 (PST) Message-ID: <4bebff790901070655v28fb59c0od8884af26e110e78@mail.gmail.com> Date: Wed, 7 Jan 2009 17:55:37 +0300 From: "Aleksey Shipilev" To: dev@harmony.apache.org Subject: Re: [jira] Commented: (HARMONY-6056) [classlib][jit][opt][performance] Optimize heap allocations in String(String, int) constructor for JIT In-Reply-To: <4964C05B.2080801@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1100194590.1229915264310.JavaMail.jira@brutus> <49092120.1231268324402.JavaMail.jira@brutus> <70c713190901061950l53b326c0hc19b4adaf2469877@mail.gmail.com> <4bebff790901070102w4183c200v16af97378e7843cd@mail.gmail.com> <4964C05B.2080801@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Ok, we can implement the in-place Integer.toString() and specialize the radix-10 conversion in Integer. Then Classlib performance guys might use the inplace conversion to optimize StringBuilder performance or even catch the concatenation like J9 does. My idea is to share whatever optimization between all VMs that use the Classlib. Thanks, Aleksey. On Wed, Jan 7, 2009 at 5:46 PM, Tim Ellison wrote: > Aleksey Shipilev wrote: >> Am I understanding right that private String(String, int) is inlined >> by J9 JIT when (String)s1 + (int)v1 is required? > > Yes - so for DRLVM, Kevin's patch in HARMONY-6056 will be impotent. > > Regards, > Tim > >