| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This both switches to a single algorithm for array cloning and also speeds up (by ~100% in the ee-listeners-many benchmark) the "many elements" case that was previously handled by `array.slice()`.
There was a problem hiding this comment.
Curious, is iterating backwards faster than forward?
Sorry, something went wrong.
There was a problem hiding this comment.
According to this jsperf and this jsperf it appears so, at least in this case.
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah, it's really micro, but I also always do this when possible/sane, idk I guess I just like the way it looks. XD
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
+1, kill all the magic numbers. |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
This both switches to a single algorithm for array cloning and also speeds up (by ~100% in the ee-listeners-many benchmark) the "many elements" case that was previously handled by `array.slice()`. PR-URL: #1050 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Julian Duque <julianduquej@gmail.com>
| Back | FazBrowse Home | New Git URL |
This both switches to a single algorithm for array cloning and also
speeds up (by ~100% in the ee-listeners-many benchmark) the
"many elements" case that was previously handled by
array.slice().