News for hackers. Stuff that matters.
Re:Making a Go program 70% faster with a one character change by codeflo on Monday November 14, 2022 @12:38PM (#33597772)
I’m not sure I get what you mean. You wouldn’t have that many String copies in Java by passing an unchanged String down the call stack. My point is that it’s too easy to make this mistake in C++.
Re:Making a Go program 70% faster with a one character change by cbsmith on Monday November 14, 2022 @12:50PM (#33598007)
In Java, the mistake happens only when there's an abstraction that hides the copying from you, so it isn't implicit in the same way, but it's still implicit.