| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
const?
Sorry, something went wrong.
There was a problem hiding this comment.
Um... well, maybe, but in that case makes sense to change other places in this file as well. And, generally, unless already consistent with a file styling, I'm personally not a big fan of using block-scoped variables in benchmark code at least until V8 fixes their deopts (it does affect numbers quite a bit at the moment), but I can change if you really wish.
Sorry, something went wrong.
There was a problem hiding this comment.
If it affects the numbers (I know it can when it comes to let), feel free to leave it, but it’s become pretty standard around here to always use const when it makes sense… personally, I don’t care much, though. 😄
Sorry, something went wrong.
There was a problem hiding this comment.
Well, if changing only those to const and not touching var i -> let i, then it looks fine, within the limtis.
Sorry, something went wrong.
There was a problem hiding this comment.
Updated.
Sorry, something went wrong.
|
Btw, if you want to refer to github issues/PRs/etc. in the commit message, you can do that, but it’s strongly preferred to use the full URL… I’d maybe drop that line anyway. :) |
Sorry, something went wrong.
|
Oh ok. Wasn't aware of that. |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
cc @nodejs/buffer |
Sorry, something went wrong.
|
nits: git message title, don't cap "Fix" and don't end with period. In git message body want to place URL's in Ref:. e.g. Improves numbers up to 4x by avoiding repetitive dynamic method lookup. Ref: https://github.com/nodejs/node/pull/6893 Though as @addaleax mentioned, probably best to just drop that line since the ref isn't directly applicable to this change. Change itself LGTM |
Sorry, something went wrong.
Improves numbers up to 4x by avoiding repetitive dynamic method lookup.
|
Changed the commit message. |
Sorry, something went wrong.
|
Great. LGTM. |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
lint passes: https://ci.nodejs.org/job/node-test-linter/2672/ LGTM |
Sorry, something went wrong.
Improves numbers up to 4x by avoiding repetitive dynamic method lookup. PR-URL: #6922 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Improves numbers up to 4x by avoiding repetitive dynamic method lookup. PR-URL: nodejs#6922 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Improves numbers up to 4x by avoiding repetitive dynamic method lookup. PR-URL: #6922 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
|
@thealphanerd Can do. Does it require backporting PR? |
Sorry, something went wrong.
|
nope landed cleanly |
Sorry, something went wrong.
Improves numbers up to 4x by avoiding repetitive dynamic method lookup. PR-URL: #6922 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Improves numbers up to 4x by avoiding repetitive dynamic method lookup. PR-URL: #6922 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Improves numbers up to 4x by avoiding repetitive dynamic method lookup. PR-URL: #6922 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
Improves numbers up to 4x by avoiding repetitive dynamic method lookup. PR-URL: #6922 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
buffer
Description of change
Just fixes a benchmark code itself to provide proper measurement.
Improves numbers up to 4x by avoiding repetitive dynamic method lookup.
Before the change:
After the change:
(Just noticed this when going through #6893 and couldn't pass by.)