-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: slim down stream_base-inl.h #46972
src: slim down stream_base-inl.h #46972
Conversation
@addaleax Hi! After the PR was approved, I noticed that the CI failed due to a linter error that snuck in - should I re-request a review after I address the linter error? Thank you. |
@lilsweetcaligula It will be a tad easier to get this PR merged if the most recent changes are approved after the linter error is fixed, but I if that’s all that changed, I think you’re fine either way. (We’ll still want to run CI on that, in any case, so somebody will need take a look regardless.) |
@nodejs/actions It seems like GitHub Actions did not start for this PR. Is there a way to start them? |
Convert to draft and mark ready for review like I just did. |
Landed in 97d3912 |
PR-URL: nodejs#46972 Refs: nodejs#43712 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Hi @lilsweetcaligula |
De-inline and move big functions from
stream_base-inl.h
to reduce the binary size by 4 bytes in 9/10 compilations.Other method definitions were tested (notably
StreamResource::PushStreamListener
), however I empirically verified (via compiling multiple times) that moving those increased the binary size, hence I left them alone.Non-functional change.
Refs: #43712
P.S. Special thanks to @kvakil for posting the SQLite3 database which I in part relied upon to make the decisions.