go/src/time
Shuo 91bc75b487 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: a376c57e83
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>
2020-03-01 02:56:31 +00:00
..
example_test.go time: add basic YYYY/MM/DD example to time docs 2020-02-25 04:34:15 +00:00
export_android_test.go
export_test.go time: add support for day-of-year in Format and Parse 2019-03-08 01:21:33 +00:00
export_windows_test.go
format.go time: don't get confused about day 31 when parsing 002 2020-02-23 18:06:08 +00:00
format_test.go time: don't get confused about day 31 when parsing 002 2020-02-23 18:06:08 +00:00
genzabbrs.go time: change genzabbrs.go to fetch windowsZones.xml file from GitHub 2019-10-17 08:27:57 +00:00
internal_test.go runtime, syscall, time: add and use resettimer 2019-10-21 17:06:22 +00:00
mono_test.go
sleep.go time: add Ticker.Reset 2020-02-24 01:50:28 +00:00
sleep_test.go all: fix invalid invocations of Fatalf in goroutines 2020-01-03 01:36:26 +00:00
sys_plan9.go
sys_unix.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
sys_windows.go
tick.go time: add Ticker.Reset 2020-02-24 01:50:28 +00:00
tick_test.go time: add Ticker.Reset 2020-02-24 01:50:28 +00:00
time.go time: optimize Time.ISOWeek 2020-03-01 02:56:31 +00:00
time_test.go time: optimize Time.ISOWeek 2020-03-01 02:56:31 +00:00
zoneinfo.go time: document an alternative way of setting the system's time zone 2019-11-01 21:41:41 +00:00
zoneinfo_abbrs_windows.go time: change genzabbrs.go to fetch windowsZones.xml file from GitHub 2019-10-17 08:27:57 +00:00
zoneinfo_android.go time: return ENOENT from androidLoadTzinfoFromTzdata if zone not found 2018-09-15 14:58:35 +00:00
zoneinfo_android_test.go
zoneinfo_ios.go os,time: fix tests on iOS 2019-05-01 13:53:44 +00:00
zoneinfo_js.go time: handle negative offsets on js/wasm 2018-11-08 17:33:49 +00:00
zoneinfo_plan9.go
zoneinfo_read.go time: reject tzdata with no zones 2019-02-27 18:08:03 +00:00
zoneinfo_test.go time: reject tzdata with no zones 2019-02-27 18:08:03 +00:00
zoneinfo_unix.go time: remove unnecessary trailing slash from "/etc/" 2020-02-22 04:31:20 +00:00
zoneinfo_windows.go
zoneinfo_windows_test.go time: always run ZoneAbbr test 2018-08-20 14:39:59 +00:00