Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #5835

Re: baseline performance test using java ...

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date Sun, 03 Jul 2011 13:45:44 -0500
Date Sun, 03 Jul 2011 11:45:50 -0700
From Patricia Shanahan <pats@acm.org>
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: baseline performance test using java ...
References <1309715588.716395@nntp.aceinnovative.com> <iuqcm0$tmh$2@speranza.aioe.org>
In-Reply-To <iuqcm0$tmh$2@speranza.aioe.org>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <vt2dnfwXi-FFJY3TnZ2dnUVZ_tqdnZ2d@earthlink.com> (permalink)
Lines 23
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 70.230.196.78
X-Trace sv3-jUczesMyynykIRq+SwyACYN/eFjIkUgsV/Uq2L4KPSO4q42d6NFRCP4/WZnSVfqsJay4/gAV18P+PBz!usgSkKhMbpQJfJAzQxmafjr3CySDIwG9KoldDVzpiuVxcTkJglROs1+RiJBwGoK8UHuHUM5dAqcN!/fv/PlIv+kaKhUlwU5cV3KskJv/O4e4zI8kg+ujHnBI+MA==
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2099
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5835

Show key headers only | View raw


On 7/3/2011 11:33 AM, Abu Yahya wrote:
> On 7/3/2011 11:23 PM, lbrt chx _ gemale kom wrote:
>
>>>> ~ We have all learned we should avoid String(s) and use
>>>> StringBuffer(s) or better yet StringBuilder(s) but there is
>> ~
>>> Er, no. Strings are great ...
>> ~
>> I (obviously) meant to say String(s) if you need to build them
>> andStringBuilder(s)
>  > if you are working (most of us by now) on some multiprocessing core
>> ~
>
> If you need to build them, you'd need a StringBuilder. And if you need
> support for multiple threads AND need to modify them, you'd need a
> StringBuffer.

Often, the StringBuffer locking is not strong enough to be really
useful. If, for example, a thread needs to append two strings to the
buffer and have them appear consecutively in the resulting string, it
needs synchronization at a higher level.

Patricia

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

baseline performance test using java ... lbrt chx _ gemale kom - 2011-07-03 17:53 +0000
  Re: baseline performance test using java ... Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-07-03 14:08 -0400
  Re: baseline performance test using java ... Abu Yahya <abu_yahya@invalid.com> - 2011-07-04 00:03 +0530
    Re: baseline performance test using java ... Patricia Shanahan <pats@acm.org> - 2011-07-03 11:45 -0700
      Re: baseline performance test using java ... Abu Yahya <abu_yahya@invalid.com> - 2011-07-04 06:52 +0530
        Re: baseline performance test using java ... lewbloch <lewbloch@gmail.com> - 2011-07-04 03:53 -0700
    Re: baseline performance test using java ... lewbloch <lewbloch@gmail.com> - 2011-07-04 03:44 -0700
  Re: baseline performance test using java ... Patricia Shanahan <pats@acm.org> - 2011-07-03 12:09 -0700
  Re: baseline performance test using java ... Patricia Shanahan <pats@acm.org> - 2011-07-04 09:54 -0700

csiph-web