From 61dca94e107170d2ff3beb13bb9fa5ce49d8d6fd Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Mon, 16 Jun 2014 23:03:03 -0700 Subject: runtime: implement string ops in Go Also implement go:nosplit annotation. Not really needed for now, but we'll definitely need it for other conversions. benchmark old ns/op new ns/op delta BenchmarkRuneIterate 534 474 -11.24% BenchmarkRuneIterate2 535 470 -12.15% LGTM=bradfitz R=golang-codereviews, dave, bradfitz, minux CC=golang-codereviews https://golang.org/cl/93380044 --- src/pkg/runtime/error.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/pkg/runtime/error.go') diff --git a/src/pkg/runtime/error.go b/src/pkg/runtime/error.go index e704ff8726..12fd09eaf9 100644 --- a/src/pkg/runtime/error.go +++ b/src/pkg/runtime/error.go @@ -80,8 +80,6 @@ type errorCString struct{ cstr uintptr } func (e errorCString) RuntimeError() {} -func cstringToGo(uintptr) string - func (e errorCString) Error() string { return "runtime error: " + cstringToGo(e.cstr) } -- cgit v1.3