]> Cypherpunks repositories - gostls13.git/commit
time: make Format 2.7x faster
authorRuss Cox <rsc@golang.org>
Sun, 3 Jun 2012 15:08:17 +0000 (11:08 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 3 Jun 2012 15:08:17 +0000 (11:08 -0400)
commita76c8b243014b884b24642e0d1d044434f583ae4
tree9b8d59b9f58d82ea4b582f787d1d3484bace6e70
parenteb4138f48114de303d8844f4fa2ff872e2a7a678
time: make Format 2.7x faster

benchmark             old ns/op    new ns/op    delta
BenchmarkFormat            2495          937  -62.44%
BenchmarkFormatNow         2308          889  -61.48%

Update #3679.

R=r
CC=golang-dev
https://golang.org/cl/6278047
src/pkg/time/format.go
src/pkg/time/time.go
src/pkg/time/time_test.go
src/pkg/time/zoneinfo.go