mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-29 20:30:58 +00:00
...by avoiding `CreateListFromArrayLike` in cases when we could directly
use elements of underlying object's indexed properties storage.
Makes this program go 2.1x faster:
```js
function target(a, b, c) {
return a + b + c;
}
const args = [1, 2, 3];
let result = 0;
(function() {
for (let i = 0; i < 10_000_000; i++) {
result += target.apply(null, args);
}
})();
```
|
||
|---|---|---|
| .. | ||
| Function.js | ||
| Function.prototype.@@hasInstance.js | ||
| Function.prototype.apply.js | ||
| Function.prototype.bind.js | ||
| Function.prototype.call.js | ||
| Function.prototype.js | ||
| Function.prototype.toString.js | ||