diff options
| author | Quan Yong Zhai <qyzhai@gmail.com> | 2011-07-12 17:30:40 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-07-12 17:30:40 -0700 |
| commit | fe9991e8b29d261f12a0a0a15b89d67a29f5299d (patch) | |
| tree | dd74907d74aaa2513d6133a9e693ca5cc43dcdcb /src/pkg/runtime/runtime.h | |
| parent | ba91dac3a9e01a68e13e3ea6f6798f2f3b4ea73f (diff) | |
| download | go-fe9991e8b29d261f12a0a0a15b89d67a29f5299d.tar.xz | |
runtime: replace runtime.mcpy with runtime.memmove
faster string operations, and more
tested on linux/386
runtime_test.BenchmarkSliceToString 642 532 -17.13%
runtime_test.BenchmarkStringToSlice 636 528 -16.98%
runtime_test.BenchmarkConcatString 1109 897 -19.12%
R=r, iant, rsc
CC=golang-dev
https://golang.org/cl/4674042
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index de0a21b956..ef17b72d69 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -406,7 +406,6 @@ uint32 runtime·rnd(uint32, uint32); void runtime·prints(int8*); void runtime·printf(int8*, ...); byte* runtime·mchr(byte*, byte, byte*); -void runtime·mcpy(byte*, byte*, uint32); int32 runtime·mcmp(byte*, byte*, uint32); void runtime·memmove(void*, void*, uint32); void* runtime·mal(uintptr); |
