Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35958
| Path | csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!enother.net!enother.net!enother.net!news.netfront.net!.POSTED.87.142.2.48!not-for-mail |
|---|---|
| From | Lothar Kimmeringer <news200709@kimmeringer.de> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: "Double.toString" |
| Date | Thu, 24 Nov 2016 14:07:00 +0100 |
| Organization | Organization?! Only chaos here! |
| Message-ID | <1gcla4rjhg12u.dlg@kimmeringer.de> (permalink) |
| References | <Double-toString-20161119164723@ram.dialup.fu-berlin.de> <o0s8u2$rj6$1@dont-email.me> <1u072gaozj278$.dlg@kimmeringer.de> <9a71ae21-aa0e-4ee6-930f-b7b871a8d7cc@googlegroups.com> |
| Reply-To | news@kimmeringer.de |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | adenine.netfront.net; posting-host="87.142.2.48"; logging-data="25162"; mail-complaints-to="news@netfront.net" |
| User-Agent | 40tude_Dialog/2.0.15.1de |
| Xref | csiph.com comp.lang.java.programmer:35958 |
Show key headers only | View raw
lewbloch@gmail.com wrote:
> The number of objects created is very unlikely to present
> an issue. The `StringBuilder` will be GCed painlessly, and
> the HotSpot is likely to optimize away a whole lot of that
> anyway. Let's not panic about the negligible putative
> differences in performance and focus on clarity and
> maintainability of the source.
IMHO
myString = "" + myDouble
is less readable than
myString = Double.toString(myDouble);
But that's IMHO, YMMV
Cheers, Lothar
--
Lothar Kimmeringer E-Mail: spamfang@kimmeringer.de
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions!
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: "Double.toString" Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-11-20 08:37 -0500
Re: "Double.toString" Lothar Kimmeringer <news200709@kimmeringer.de> - 2016-11-20 22:49 +0100
Re: "Double.toString" Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-11-21 08:25 -0500
Re: "Double.toString" lewbloch@gmail.com - 2016-11-22 15:10 -0800
Re: "Double.toString" Lothar Kimmeringer <news200709@kimmeringer.de> - 2016-11-24 14:07 +0100
Re: "Double.toString" Arne Vajhøj <arne@vajhoej.dk> - 2016-11-24 11:12 -0500
Re: "Double.toString" lewbloch@gmail.com - 2016-11-27 08:16 -0800
Re: "Double.toString" Eric Douglas <e.d.programmer@gmail.com> - 2016-11-28 05:34 -0800
csiph-web