]> Cypherpunks repositories - gostls13.git/commit
runtime: faster range on empty map
authorFrederick Kelly Mayle III <frederickmayle@gmail.com>
Thu, 23 May 2013 21:17:52 +0000 (14:17 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 23 May 2013 21:17:52 +0000 (14:17 -0700)
commit7b9df092618d593e29ff8e7a509a5ad110431439
treea724777e41436331ca92d7d12cfcbd91f53568be
parentc6b6c4ac39b274ad82b0dc5380502654ab94a652
runtime: faster range on empty map

benchmark                old ns/op    new ns/op    delta
BenchmarkMapIter               191          190   -0.52%
BenchmarkMapIterEmpty           22            4  -78.96%

R=golang-dev, minux.ma, dvyukov, iant, khr
CC=golang-dev
https://golang.org/cl/9637043
src/pkg/runtime/hashmap.c
src/pkg/runtime/mapspeed_test.go