Uh oh!
There was an error while loading. Please reload this page.
benchmark, http: refactor for code consistency - #28791
Conversation
Trott
commented
Jul 21, 2019
Older versions of V8 (and thus older versions of Node.js) had significant performance degradation when |
RamirezAlex
commented
Jul 21, 2019
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 |
Trott
commented
Jul 21, 2019
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? |
addaleax
commented
Jul 21, 2019
@RamirezAlex I think separating the two concerns into different PRs sounds fine 👍 |
In benchmark http directory this changes for loops using var to let when it applies for consistency
Trott
left a comment
There was a problem hiding this comment.
Other benchmarks use for (let so might as well be consistent. Thanks.
$ grep -l 'for (let' benchmark/*/*.jsbenchmark/child_process/child-process-params.jsbenchmark/dns/lookup-promises.jsbenchmark/es/spread-assign.jsbenchmark/es/string-concatenations.jsbenchmark/es/string-repeat.jsbenchmark/http/_chunky_http_client.jsbenchmark/http/create-clientrequest.jsbenchmark/http/incoming_headers.jsbenchmark/path/parse-posix.jsbenchmark/path/parse-win32.jsbenchmark/path/relative-posix.jsbenchmark/path/relative-win32.jsbenchmark/timers/set-immediate-breadth-args.jsbenchmark/timers/set-immediate-breadth.jsbenchmark/util/priority-queue.js
$
This comment has been minimized.
This comment has been minimized.
Trott
commented
Jul 30, 2019
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
forloops usingvartoletwhen 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
benchmarkwith single commits so it's easy to review a few files per commit.make -j4 test(UNIX)