Skip to content

Commit d83168e

Browse files
committed
lib/time, time, time/tzdata: use slim tz data format
Follow-up for CL 261363 which had to retain the fat tz data format due to failing test. The reason for the failed tests was that when caching location data, the extended time format past the end of zone transitions was not considered. The respective change was introduced in (*Location).lookup by CL 215539. This slims down zoneinfo.zip (and thus also the embedded copy in time/tzdata) by ~350KB. Change-Id: I412f79de98ba45358b8696aca784999b3479135e Reviewed-on: https://go-review.googlesource.com/c/go/+/261877 Trust: Tobias Klauser <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent fc3a6f4 commit d83168e

File tree

5 files changed

+6883
-12892
lines changed

5 files changed

+6883
-12892
lines changed

lib/time/update.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ curl -L -O https://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.g
2121
tar xzf tzcode$CODE.tar.gz
2222
tar xzf tzdata$DATA.tar.gz
2323

24-
make CFLAGS=-DSTD_INSPIRED AWK=awk TZDIR=zoneinfo ZFLAGS="-b fat" posix_only
24+
make CFLAGS=-DSTD_INSPIRED AWK=awk TZDIR=zoneinfo posix_only
2525

2626
cd zoneinfo
2727
rm -f ../../zoneinfo.zip

lib/time/zoneinfo.zip

-353 KB
Binary file not shown.

src/time/tzdata/tzdata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// it will use this embedded information.
1111
//
1212
// Importing this package will increase the size of a program by about
13-
// 800 KB.
13+
// 450 KB.
1414
//
1515
// This package should normally be imported by a program's main package,
1616
// not by a library. Libraries normally shouldn't decide whether to

0 commit comments

Comments
 (0)