]> Cypherpunks repositories - gostls13.git/commit
time: optimize Time.ISOWeek
authorShuo <openset.wang@gmail.com>
Sun, 1 Mar 2020 02:32:32 +0000 (02:32 +0000)
committerIan Lance Taylor <iant@golang.org>
Sun, 1 Mar 2020 02:56:31 +0000 (02:56 +0000)
commit91bc75b4870308b668d497ff22eada75219c3c2e
tree554ff826538cf155cca06ed9c55475f82cb91255
parent2172b229b95f483324825806f692303a0a132762
time: optimize Time.ISOWeek

name       old time/op  new time/op  delta
ISOWeek-4  57.7ns ± 5%  27.9ns ±10%  -51.54%  (p=0.000 n=48+49)

Fixes #37534

Change-Id: Ic4673ced44a4b0190018e87207743ed9500fb1e0
GitHub-Last-Rev: a376c57e83a99f8e8fde297335caa85215e7aead
GitHub-Pull-Request: golang/go#36316
Reviewed-on: https://go-review.googlesource.com/c/go/+/212837
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/time/time.go
src/time/time_test.go