[Webkit-unassigned] [Bug 166458] New: Looking up properties on ModuleNamespaceObject is slow
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 23 00:26:48 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=166458
Bug ID: 166458
Summary: Looking up properties on ModuleNamespaceObject is slow
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sbarati at apple.com
CC: benjamin at webkit.org, fpizlo at apple.com,
ggaren at apple.com, gskachkov at gmail.com,
jfbastien at apple.com, keith_miller at apple.com,
mark.lam at apple.com, msaboff at apple.com,
oliver at apple.com, ticaiolima at gmail.com,
utatane.tea at gmail.com
Consider these two programs:
a:
```
import * as assert from "../assert.js";
let array = [];
for (let i = 0; i < 40000000; i++) {
array.push(i);
}
for (let i = 0; i < 40000000; i++) {
assert.eq(array[i], i);
}
```
b:
```
import {eq} from "../assert.js";
let array = [];
for (let i = 0; i < 40000000; i++) {
array.push(i);
}
for (let i = 0; i < 40000000; i++) {
eq(array[i], i);
}
```
Program "b" is more than 4x faster than program "a".
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161223/1cd36ecc/attachment-0001.html>
More information about the webkit-unassigned
mailing list