]> Cypherpunks repositories - gostls13.git/commit
pick off special one-byte case in copy. worth 2x in benchmarks (38ns->16ns).
authorRob Pike <r@golang.org>
Mon, 7 Dec 2009 19:28:02 +0000 (11:28 -0800)
committerRob Pike <r@golang.org>
Mon, 7 Dec 2009 19:28:02 +0000 (11:28 -0800)
commit20c1ec263a8910ae1b794cb017f59e73997a9296
treee037e0913cdf47f06644edf063afd7ad90af1c23
parent80e17d67976b29c4de6173d858efbe0955648404
pick off special one-byte case in copy. worth 2x in benchmarks (38ns->16ns).
the one-item case could be generalized easily with no cost. worth considering.

R=rsc
CC=golang-dev, cw
https://golang.org/cl/167044
src/pkg/runtime/slice.c