Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use optimized code generator #17

Merged
merged 1 commit into from
Feb 23, 2017
Merged

Use optimized code generator #17

merged 1 commit into from
Feb 23, 2017

Conversation

cquiroz
Copy link
Owner

@cquiroz cquiroz commented Feb 23, 2017

This PR brings the latest time zone db which produces a much smaller output at the cost of readability.

A sample demo using a single timezone produces a fast/full optimized js of size:

  • before this PR
    fast/full
    10501722/1517932

  • after this PR
    fast/full
    2837605/981000

  • Note that the size without tz usage is:
    fast/full
    1672688/372915

I don't expect this code to be the final way to provide a tzdb, instead a system where you can build your own db would produce smaller files and simpler to maintain

However this is already usable and could be released

@cquiroz cquiroz merged commit 4eac68d into master Feb 23, 2017
@cquiroz cquiroz deleted the smaller-tzdb branch February 23, 2017 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant