build: enable -fvisibility to improve startup speeds - #65526
Conversation
|
Review requested:
|
Signed-off-by: avivkeller <me@aviv.sh>
25d6c9c to
349d171
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #65526 +/- ##
=======================================
Coverage 90.13% 90.14%
=======================================
Files 751 751
Lines 253656 253679 +23
Branches 47787 47788 +1
=======================================
+ Hits 228631 228668 +37
- Misses 16258 16266 +8
+ Partials 8767 8745 -22
🚀 New features to boost your workflow:
|
The TODO is not about our addons, which aren't doing anything too sophisticated. We already know for example some Linux packages in the wild depend on Node.js for V8 symbols (may include internal ones). I suspect this may happen to e.g. libuv, OpenSSL etc. for embedders too. We also know that for example, some embedders rely on fast APIs even though we don't publish the header. The TODO is mostly about investigating this type of cases are out there. For simply removing the symbols, I'd prefer to see some more responsible investigation and coordination with downstream embedders/popular addons first before we pull the trigger. |
cc @joyeecheung this resolves your
TODO(joyeecheung): investigate if it breaks addons.comment.If I understand correctly, this is fine to enable, since:
signo_string). Weak symbols don't matter here.Plus, it speeds up startups by ~33% (yay!):
Running JS (
--eval)--versionOnly