diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2011-08-08 09:35:32 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-08-08 09:35:32 -0400 |
| commit | 54e9406ffbabadb2eaf2cf1f3b2297f8a3998157 (patch) | |
| tree | 3a2aca3f912cf58300ca26d55e881ac43ed09740 /src/pkg/runtime/runtime.h | |
| parent | a09ba8b6387d938df871d545baa5cbf792459aec (diff) | |
| download | go-54e9406ffbabadb2eaf2cf1f3b2297f8a3998157.tar.xz | |
runtime: add more specialized type algorithms
The change adds specialized type algorithms
for slices and types of size 8/16/32/64/128.
It significantly accelerates chan and map operations
for most builtin types as well as user structs.
benchmark old,ns/op new,ns/op
BenchmarkChanUncontended 226 94
(on Intel Xeon E5620, 2.4GHz, Linux 64 bit)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4815087
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index d2e4378b59..8c5403f444 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -335,7 +335,17 @@ enum ASTRING, AINTER, ANILINTER, - AMEMWORD, + ASLICE, + AMEM8, + AMEM16, + AMEM32, + AMEM64, + AMEM128, + ANOEQ8, + ANOEQ16, + ANOEQ32, + ANOEQ64, + ANOEQ128, Amax }; |
