| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Object.values() has not been improvement significantly since the last time I checked: https://bugs.chromium.org/p/v8/issues/detail?id=8071 If we change something, I suggest to use Object.keys() instead of in. |
Sorry, something went wrong.
|
@BridgeAR Can you review this again ? thanks. |
Sorry, something went wrong.
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.
Sorry, something went wrong.
|
@BridgeAR Good point. I will add it. |
Sorry, something went wrong.
|
@BridgeAR Done. |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
This is a very sensitive hot path. I’m -1 to any changes that do not improve our benchmarks.
Sorry, something went wrong.
|
I think this has 0 impact on performance. Will run a benchmark CI to verify. |
Sorry, something went wrong.
|
@lpinca I'm pretty sure it has some impact. for-of loops are slower than for(;;). |
Sorry, something went wrong.
|
https://jsperf.com/for-of-vs-for-loop they seem to be on par on Chrome 72. |
Sorry, something went wrong.
|
If this is a problem for 10.x 8.x and 6.x we can add the required "do not land" labels. |
Sorry, something went wrong.
The for-loop case in that benchmark consistently shows it being faster for me with Chrome 72 |
Sorry, something went wrong.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist