Uh oh!
There was an error while loading. Please reload this page.
lib: print to stdout/stderr directly instead of using console - #27320
lib: print to stdout/stderr directly instead of using console#27320joyeecheung wants to merge 2 commits into
Conversation
This patch adds an internal function that prints to stdout or stderr by directly writing to the known file descriptor, and uses it internally in common cases to avoid the overhead of the console implementation.
nodejs-github-bot
commented
Apr 20, 2019
joyeecheung
commented
Apr 20, 2019
nodejs-github-bot
commented
Apr 20, 2019
joyeecheung
commented
Apr 20, 2019
From the CI: |
BridgeAR
commented
Apr 21, 2019
If we have such significant overhead with |
@BridgeAR I don't think we could improve |
nodejs-github-bot
commented
Apr 24, 2019
joyeecheung
commented
Apr 26, 2019
I am going to land this after the 7 day wait if no more reviews come up. |
Isn't this pretty much the same as |
@Fishrock123 It’s not exactly the same in that the output is formatted different for compatibility (primarily colors), it handles IPC, can print to stdout, and it’s not accessible in the user land - if we change any of these to process._rawDebug() I am afraid it could be a semver-major. Also the point here is to have a lighter weight console so it needs to match the console behavior which is not so raw for process._rawDebug(). |
joyeecheung
commented
Apr 28, 2019
Landed in 31b3dd2...c5817ab |
This patch adds an internal function that prints to stdout or stderr by directly writing to the known file descriptor, and uses it internally in common cases to avoid the overhead of the console implementation. PR-URL: #27320 Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #27320 Reviewed-By: James M Snell <jasnell@gmail.com>
This patch adds an internal function that prints to stdout or stderr by directly writing to the known file descriptor, and uses it internally in common cases to avoid the overhead of the console implementation. PR-URL: #27320 Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #27320 Reviewed-By: James M Snell <jasnell@gmail.com>
lib: print to stdout/stderr directly instead of using console
This patch adds an internal function that prints to stdout or
stderr by directly writing to the known file descriptor, and
uses it internally in common cases to avoid the overhead
of the console implementation.
benchmark: add benchmark for node -p
Local benchmark results
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes