mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: faster memclr on x86.
Use explicit SSE writes instead of REP STOSQ. benchmark old ns/op new ns/op delta BenchmarkMemclr5 22 5 -73.62% BenchmarkMemclr16 27 5 -78.49% BenchmarkMemclr64 28 6 -76.43% BenchmarkMemclr256 34 8 -74.94% BenchmarkMemclr4096 112 84 -24.73% BenchmarkMemclr65536 1902 1920 +0.95% LGTM=dvyukov R=golang-codereviews, dvyukov CC=golang-codereviews https://golang.org/cl/60090044
This commit is contained in:
parent
aac872e118
commit
da7cf0ba5d
11 changed files with 324 additions and 62 deletions
|
|
@ -84,3 +84,7 @@ func GogoBytes() int32
|
|||
|
||||
var hashLoad float64 // declared in hashmap.c
|
||||
var HashLoad = &hashLoad
|
||||
|
||||
func memclrBytes(b []byte)
|
||||
|
||||
var MemclrBytes = memclrBytes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue