question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

full-icu makes binaries huge

See original GitHub issue

cc: @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:open
  • Created 2 years ago
  • Comments:15

github_iconTop GitHub Comments

3reactions
pmb0commented, Sep 29, 2021

@jesec

Please provide a command line option to pkg or an environment variable to control whether small-icu or full-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:

pkg --with-intl=small-icu (default)
pkg --with-intl=full-icu
3reactions
jeseccommented, Apr 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found