diff options
Diffstat (limited to 'src/runtime/string.go')
| -rw-r--r-- | src/runtime/string.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/string.go b/src/runtime/string.go index 44d586bc53..3726d9235b 100644 --- a/src/runtime/string.go +++ b/src/runtime/string.go @@ -59,6 +59,9 @@ func concatstrings(buf *tmpBuf, a []string) string { return s } +// concatstring2 helps make the callsite smaller (compared to concatstrings), +// and we think this is currently more valuable than omitting one call in the +// chain, the same goes for concatstring{3,4,5}. func concatstring2(buf *tmpBuf, a0, a1 string) string { return concatstrings(buf, []string{a0, a1}) } @@ -108,6 +111,9 @@ func concatbytes(buf *tmpBuf, a []string) []byte { return b } +// concatbyte2 helps make the callsite smaller (compared to concatbytes), +// and we think this is currently more valuable than omitting one call in +// the chain, the same goes for concatbyte{3,4,5}. func concatbyte2(buf *tmpBuf, a0, a1 string) []byte { return concatbytes(buf, []string{a0, a1}) } |
