-
Notifications
You must be signed in to change notification settings - Fork 30k
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
benchmark, http: refactor for code consistency #28791
Conversation
Older versions of V8 (and thus older versions of Node.js) had significant performance degradation when |
Thank you @Trott for explaining this to me. I am OK closing it. However, could you please let me know if the other around works? Meaning to have always In the other hand, what about the empty line after |
Let's leave it open to see what other Collaborators think. For example, there may be consensus that the benchmark
I think
I don't have an opinion on that, other than that if we're going to require an empty line after |
I’m okay with the We’re pretty evenly split on the blank line issue in our current code, with 42 % percent of JS files in |
Thank you @Trott and @addaleax for the feedback and clarification. I feel like the I don't really much care if it is either adding or removing the blank line, but I think there should be some consistency. Does it sound like a plan? |
@RamirezAlex I think separating the two concerns into different PRs sounds fine 👍 |
f0e4b75
to
359d611
Compare
In benchmark http directory this changes for loops using var to let when it applies for consistency
359d611
to
db9f71b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other benchmarks use for (let
so might as well be consistent. Thanks.
$ grep -l 'for (let' benchmark/*/*.js
benchmark/child_process/child-process-params.js
benchmark/dns/lookup-promises.js
benchmark/es/spread-assign.js
benchmark/es/string-concatenations.js
benchmark/es/string-repeat.js
benchmark/http/_chunky_http_client.js
benchmark/http/create-clientrequest.js
benchmark/http/incoming_headers.js
benchmark/path/parse-posix.js
benchmark/path/parse-win32.js
benchmark/path/relative-posix.js
benchmark/path/relative-win32.js
benchmark/timers/set-immediate-breadth-args.js
benchmark/timers/set-immediate-breadth.js
benchmark/util/priority-queue.js
$
This comment has been minimized.
This comment has been minimized.
Landed in 9140f62 |
In benchmark http directory this changes for loops using var to let when it applies for consistency PR-URL: nodejs#28791 Reviewed-By: Rich Trott <rtrott@gmail.com>
In benchmark http directory this changes for loops using var to let when it applies for consistency PR-URL: #28791 Reviewed-By: Rich Trott <rtrott@gmail.com>
In benchmark http directory this changes
for
loops usingvar
tolet
when it applies for consistency and it always add an empty line
after
'use strict'
.If this is OK, I will do it for the other directories in
benchmark
with single commits so it's easy to review a few files per commit.make -j4 test
(UNIX)