]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: use more efficient hash table for staging profile
authorRuss Cox <rsc@golang.org>
Fri, 17 Feb 2017 02:13:15 +0000 (21:13 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 24 Feb 2017 17:05:37 +0000 (17:05 +0000)
commit1564817d8c941344caa14d14fac55f7e7b46055e
treeac96a18aa6f5b1caa7a18026873d4554e2677e98
parent1a680a902ada111a0d8122e12b42f5b437ba2566
runtime/pprof: use more efficient hash table for staging profile

The old hash table was a place holder that allocates memory
during every lookup for key generation, even for keys that hit
in the the table.

Change-Id: I4f601bbfd349f0be76d6259a8989c9c17ccfac21
Reviewed-on: https://go-review.googlesource.com/37163
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/runtime/pprof/map.go [new file with mode: 0644]
src/runtime/pprof/pprof.go
src/runtime/pprof/proto.go
src/runtime/pprof/proto_test.go