| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Refs: nceu19-async_hooks This comment will help contributors to understand why keeping var
|
Welcome, @lrecknagel and thanks for the pull request. I'm guessing this is from a Code + Learn event. I'm not sure the "let inside a loop is much slower than var" thing is true anymore in current V8. /ping @nodejs/v8 |
Sorry, something went wrong.
|
This is an extremely tight loop in a code path that is hit a lot. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Cool. Let's see if we can get that information into the comment. As it reads now, it could encourage someone to go through and change all let in loops to var throughout core. |
Sorry, something went wrong.
|
I left two optional suggestions. It will save someone a little bit of git blame archaeology should these lines get moved around, edited, etc. But totally optional. Thanks. |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
|
the windows failure sequential/test-inspector-contexts is known as in #30519 the windows failure parallel/test-inspector-wait-for-connection is known as in #30619 the linux containerized failure parallel/test-readline-async-iterators-destroy is reported #30660 |
Sorry, something went wrong.
This comment will help contributors to understand why keeping var PR-URL: #30380 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This comment will help contributors to understand why keeping var PR-URL: #30380 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This comment will help contributors to understand why keeping var PR-URL: #30380 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This comment will help contributors to understand why keeping var PR-URL: #30380 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
|
👋 Just passing by here and I was curious so I ran some benchmarks if anyone is curious about this. At the time of Node.js 6 it was a real performance gain but nowadays it's almost the same |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Refs: nceu19-async_hooks
This comment will help contributors to understand why keeping var in some for loop instead changing at to let, as discussed with @mcollina
Checklist