| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
TypeScript Bot (@typescript-bot) perf test |
Sorry, something went wrong.
|
Heya Ron Buckton (@rbuckton), I've started to run the perf test suite on this PR at 528601f. You can monitor the build here. It should now contribute to this PR's status checks. Update: The results are in! |
Sorry, something went wrong.
|
Ron Buckton (@rbuckton) Comparison Report - master..31166
System
Hosts
Scenarios
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sorry, something went wrong.
|
What about speedup __spreadArrays? var __spreadArrays = function () {
for (var i = 0, l = 0, al = arguments.length; i < al; ++i)
l += arguments[i].length;
for (var ar = new Array(l), i = 0, k = 0; i < al; ++i)
for (var j = 0, a = arguments[i], jl = a.length; j < jl; ++j, ++k)
ar[k] = a[j];
return ar;
};On V8 7.4 this faster by ~3x-6x for large (> 1k) arrays. Bench link: |
Sorry, something went wrong.
| } | ||
|
|
||
| function isPackedElement(node: Expression) { | ||
| return !isOmittedExpression(node); |
There was a problem hiding this comment.
const innerSpreadEmpty = [1, 2, ...[...[,,,]]]?
Sorry, something went wrong.
There was a problem hiding this comment.
Works just fine.
Sorry, something went wrong.
There was a problem hiding this comment.
It basically catches [...[1, 2]] and turns it into [1, 2] rather than calling the helper.
Sorry, something went wrong.
|
TypeScript Bot (@typescript-bot) test this |
Sorry, something went wrong.
|
Heya Ron Buckton (@rbuckton), I've started to run the extended test suite on this PR at d6b3a11. You can monitor the build here. It should now contribute to this PR's status checks. |
Sorry, something went wrong.
|
Verified that the only differences in our RWC suite are expected. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Adds a __spreadArrays helper for a more accurate spread behavior when not using --downlevelIteration.
Fixes #8856