Uh oh!
There was an error while loading. Please reload this page.
http: improve for-loop readability in _http_outgoing.js - #26408
http: improve for-loop readability in _http_outgoing.js#26408gengjiawen wants to merge 1 commit into
Conversation
efd378c to
4b05938CompareUh oh!
There was an error while loading. Please reload this page.
4b05938 to
bd731a0CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BridgeAR
commented
Mar 5, 2019
If we change something, I suggest to use |
bd731a0 to
781024dComparegengjiawen
commented
Mar 6, 2019
@BridgeAR Can you review this again ? thanks. |
BridgeAR
left a comment
There was a problem hiding this comment.
I would still check for if (headers != null) {. That way if there are no headers, we spare two extra checks.
gengjiawen
commented
Mar 6, 2019
@BridgeAR Good point. I will add it. |
781024d to
9c0359eCompare@BridgeAR Done. |
BridgeAR
commented
Mar 6, 2019
I think this has 0 impact on performance. Will run a benchmark CI to verify. |
mcollina
commented
Mar 7, 2019
@lpinca I'm pretty sure it has some impact. |
lpinca
commented
Mar 7, 2019
https://jsperf.com/for-of-vs-for-loop they seem to be on par on Chrome 72. |
lpinca
commented
Mar 7, 2019
If this is a problem for 10.x 8.x and 6.x we can add the required "do not land" labels. |
mscdex
commented
Mar 7, 2019
The |


Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes