]> Cypherpunks repositories - gostls13.git/commit
runtime: faster strings
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 12 Oct 2011 14:40:02 +0000 (17:40 +0300)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 12 Oct 2011 14:40:02 +0000 (17:40 +0300)
commitaf1232fe38b1decdeceaf7dc0050622a79c04b10
treec1c40a6f55f3265a23a06aadaf647fd81577bd99
parent77fac21e82b94a8c1f481e9eeaafc1bad6db274c
runtime: faster strings
Use FlagNoPointers and do not zeroize memory when allocate strings.
test/garbage/parser.out        old         new
run #1                     32.923s     32.065s
run #2                     33.047s     31.931s
run #3                     32.702s     31.841s
run #4                     32.718s     31.838s
run #5                     32.702s     31.868s

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5259041
src/cmd/prof/gopprof
src/pkg/runtime/string.goc