full-icu makes binaries huge
See original GitHub issuecc: @leerob @robertsLando
node-v12.22.1-linux-x64 (--with-intl=small-icu
)
36.5 MB
node-v14.16.1-linux-x64 (--with-intl=full-icu
)
61.3 MB
full-icu
is the new default. However, is it worth it?
Is there anything we can do to decrease binary size?
Semver implications:
--without-intl
-> --with-intl=small-icu
-> --with-intl=full-icu
is minor change. The reverse is breaking change. I think maybe we can use --without-intl
first, and see how things go.
For reference:
--without-intl:
28M node-v14.16.1-linux-x64
--with-intl=full-icu: (default)
62M node-v14.16.1-linux-x64
34M node-v14.16.1-linux-x64.lz4
25M node-v14.16.1-linux-x64.zip
25M node-v14.16.1-linux-x64.tar.gz
17M node-v14.16.1-linux-x64.tar.xz
Related: nodejs/node#19214, vercel/pkg#50, vercel/pkg#184, vercel/pkg#228, vercel/pkg#281, vercel/pkg#578, vercel/pkg#885, vercel/pkg#1115
Issue Analytics
- State:
- Created 2 years ago
- Comments:15
Top Results From Across the Web
1755114 – nodejs is built without internationalization support
It turns out that building with `full-icu` results in a huge increase in disk usage (70MiB ... to the node binary in order...
Read more >Internationalization support | Node.js v19.3.0 Documentation
Embed the entire ICU ( full-icu )#. This option makes the resulting binary link against ICU statically and include a full set of...
Read more >Internationalization support
Embed the entire ICU ( full-icu ). This option makes the resulting binary link against ICU statically and include a full set of...
Read more >derekjs - npm
The package file size seems to be too large or the last published date is too old. We may support exploring this package...
Read more >嵌入整个ICU(full-icu) | Node.js API 文档
This option makes the resulting binary link against ICU statically and include a full ... dependencies and supports all locales, but might be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jesec
Please provide a command line option to
pkg
or an environment variable to control whethersmall-icu
orfull-icu
is used. We use pkg to build different kinds of services. For some of them it is important to be able to format dates correctly in a certain language; for others not.Suggestion:
Interestingly, by the same reason I mentioned (C++ land),
NODE_ICU_DATA
will not work currently, but there is only one issue about that (vercel/pkg#539), with very limited comments. Perhaps most of our users don’t really care.Let’s do
small-icu
(#167) for now and see how things so.