papandreou / node-cldr

node.js library for extracting data from CLDR (the Unicode Common Locale Data Repository)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider using gzip

gajus opened this issue · comments

The current project size is 175.5 MiB. I suggest compressing individual ./3rdparty files using gzip. This reduces project size to just under 22MiB. Meanwhile, since individual files are small, they can be decompressed at runtime and memoized.

This package is really only meant to be consumed as a dev dep, and mostly for packages that publish the CLDR data in smaller chunks. The ander package is an example of that. Is there any way that approach could work for your package?

Compressing the files could be an option, but it wouldn't affect the size of the downloaded tarball, of course?

Compressing the files could be an option, but it wouldn't affect the size of the downloaded tarball, of course?

The problem is the Docker images. This increases Docker image by ~125MB.

In my cases I worked around by extracting just the data I need from the package.

gajus/extract-date@890e3c1#diff-01994488c699366e7146092d8327cada

Okay, great that you were able to sort it out like that!

I think we would accept a PR for gzipping the cldr files if it's not too invasive.