]> Cypherpunks repositories - gostls13.git/commit
runtime: replace runtime.mcpy with runtime.memmove
authorQuan Yong Zhai <qyzhai@gmail.com>
Wed, 13 Jul 2011 00:30:40 +0000 (17:30 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 13 Jul 2011 00:30:40 +0000 (17:30 -0700)
commitfe9991e8b29d261f12a0a0a15b89d67a29f5299d
treedd74907d74aaa2513d6133a9e693ca5cc43dcdcb
parentba91dac3a9e01a68e13e3ea6f6798f2f3b4ea73f
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
13 files changed:
src/cmd/cgo/out.go
src/pkg/runtime/386/closure.c
src/pkg/runtime/386/memmove.s
src/pkg/runtime/amd64/closure.c
src/pkg/runtime/amd64/memmove.s
src/pkg/runtime/arm/closure.c
src/pkg/runtime/hashmap.h
src/pkg/runtime/plan9/thread.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.c
src/pkg/runtime/runtime.h
src/pkg/runtime/string.goc
src/pkg/runtime/symtab.c