]> Cypherpunks repositories - gostls13.git/commit
maps,runtime: improve maps.Values
authorcuiweixie <cuiweixie@gmail.com>
Mon, 3 Apr 2023 12:14:06 +0000 (20:14 +0800)
committerGopher Robot <gobot@golang.org>
Wed, 24 May 2023 04:19:06 +0000 (04:19 +0000)
commitc6fd0c22dca065fbcf8f4a6516be34db408b4397
treef1ac51f82f1c1ecbe99ce33a00729e73f6dee7bc
parent5b93af7f4f61ccc7d770ee24641b2fd9c71c0329
maps,runtime: improve maps.Values

name       old time/op    new time/op    delta
Values-10    8.67ms ± 0%    7.19ms ± 2%  -17.05%  (p=0.000 n=9+10)

name       old alloc/op   new alloc/op   delta
Values-10    58.2kB ± 2%    48.3kB ± 2%  -17.14%  (p=0.000 n=9+10)

name       old allocs/op  new allocs/op  delta
Values-10      0.00           0.00          ~     (all equal)

Change-Id: Idd35ea37514a21d97bdd6191c8fb8a478c00e414
Reviewed-on: https://go-review.googlesource.com/c/go/+/481436
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: xie cui <523516579@qq.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
src/maps/maps.go
src/maps/maps_test.go
src/runtime/map.go