chronotope / chrono-tz

TimeZone implementations for rust-chrono from the IANA database
Other
228 stars 55 forks source link

Optimize size of `TzOffset` #165

Open pitdicker opened 2 months ago

pitdicker commented 2 months ago

Three changes that bring the size of DateTime<Tz> down from 48 bytes to 20 bytes:

A binary compiled with these size optimizations is 1,5Mb smaller :tada:.

Fixes https://github.com/chronotope/chrono-tz/issues/27.