]> Cypherpunks repositories - gostls13.git/commit
gc/runtime: pass type structure to makeslice.
authorRuss Cox <rsc@golang.org>
Sat, 5 Dec 2009 05:44:05 +0000 (21:44 -0800)
committerRuss Cox <rsc@golang.org>
Sat, 5 Dec 2009 05:44:05 +0000 (21:44 -0800)
commit864c757a1cff01f57ff415229674bcf8f701836c
tree99d2cd8c0f28e98a43598373139956cc402c9fa0
parent6f14cada11411c6fff924c0ab8d8bbd430c3ae61
gc/runtime: pass type structure to makeslice.
  * inform garbage collector about memory with no pointers in it

1.9s gcc reverse-complement.c

reverse-complement.go
4.5s / 3.5s original, with/without bounds checks
3.5s / 3.3s bounds check reduction
3.3s / 2.8s smarter garbage collector
2.6s / 2.3s assembler bytes.IndexByte
2.5s / 2.1s even smarter garbage collector (this CL)

R=r
https://golang.org/cl/165064
src/cmd/gc/builtin.c.boot
src/cmd/gc/reflect.c
src/cmd/gc/runtime.go
src/cmd/gc/walk.c
src/pkg/runtime/slice.c
src/pkg/runtime/type.go
src/pkg/runtime/type.h