node/tools/v8_gypfiles
Joyee Cheung a996638e53
build: disable v8 snapshot compression by default
In the upstream, V8 also disables snapshot compression on the
desktop by default because the size reduction is not worth the
performance hit.
https://chromium-review.googlesource.com/c/v8/v8/+/3275554

Locally the binary size of Node.js is increased by ~2.7MB
(+3.2%) with a significant speedup in startup after snapshot
compression is disabled on macOS.

Also adds a --v8-enable-snapshot-compression to configure.py for
users who prefer a size reduction over speedup in startup.
Ideally we should implement our own compression for the source
code + the code cache + the snapshot instead of relying on V8's
builtin compression for just the snapshot.

PR-URL: https://github.com/nodejs/node/pull/45716
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
2022-12-12 01:53:53 +01:00
..
d8.gyp build,deps,src: fix Intel VTune profiling support 2022-11-22 08:28:19 +00:00
extras-libraries.cc
features.gypi build: disable v8 snapshot compression by default 2022-12-12 01:53:53 +01:00
ForEachFormat.py
ForEachReplace.py
GN-scraper.py
inspector.gypi tools: update V8 gypfiles for 10.7 2022-10-11 07:27:13 +02:00
toolchain.gypi gyp: fix v8 canary build on aix 2022-11-19 16:15:22 +00:00
v8.gyp tools: update V8 gypfiles 2022-11-27 17:27:20 +00:00
v8vtune.gyp build,deps,src: fix Intel VTune profiling support 2022-11-22 08:28:19 +00:00