aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2023-10-16 23:07:49 +0700
committerGopher Robot <gobot@golang.org>2023-10-18 16:32:15 +0000
commit67359829a20ee3be5d97e5f7677871e95fff87a5 (patch)
treec5214f4eda58d3e91fbb9e350f9e7af4241f155c /src/cmd
parent070c1fcbc505f9c4b4fc759c6fafc60cff28edcb (diff)
downloadgo-67359829a20ee3be5d97e5f7677871e95fff87a5.tar.xz
runtime: speed up readvarintUnsafe
The documentation of readvarintUnsafe claims itself and readvarint are duplicated. However, two implementation are not in synced, since when readvarint got some minor improvements in CL 43150. Updating readvarintUnsafe to match readvarint implementation to gain a bit of speed. While at it, also updating its documentation to clarify the main difference. name time/op ReadvarintUnsafe/old-8 6.04ns ± 2% ReadvarintUnsafe/new-8 5.31ns ± 3% Change-Id: Ie1805d0747544f69de88f6ba9d1b3960f80f00e8 Reviewed-on: https://go-review.googlesource.com/c/go/+/535815 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Than McIntosh <thanm@google.com> Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd')
0 files changed, 0 insertions, 0 deletions