|| at Nov 24, 2012 at 9:29 pm
Sorry, thought that was clear: Why is appending the remainder of the string to the modified first rune more efficient that converting to a rune and then converting back the modified slice.
ujjwalt's explanation that, in your example, only the first rune needed to be decoded and the remainder can then be appended without decoding makes sense.
On 25/11/2012, at 7:38 AM, "DisposaBoy" wrote:
On Saturday, November 24, 2012 8:22:46 PM UTC, kortschak wrote:
Why is that?
On 24/11/2012, at 10:52 PM, "DisposaBoy" wrote:
You may also consider getting the first rune and then concatting it with the rest of the string which may slightly more efficienthttp://play.golang.org/p/D8cYDgfZr8
Was this meant to be a reply to me, or steve wang? If to me, I'm not sure what you're asking