Thread (9 messages) flat view 9 messages, 2 authors, 2016-06-15

Re: [PATCH JGIT] Method invokes inefficient new String(String) constructor

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:46:40

"Sohn, Matthias" [off-list ref] wrote:
Using the java.lang.String(String) constructor wastes memory because the
object so constructed will be functionally
indistinguishable from the String passed as a parameter.  Just use the
argument String directly.
NAK.

Like the Long.valueOf() case this came up before:

http://thread.gmane.org/gmane.comp.version-control.git/113739/focus=113787
 
-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help