WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 160590
166458
Looking up properties on ModuleNamespaceObject is slow
https://bugs.webkit.org/show_bug.cgi?id=166458
Summary
Looking up properties on ModuleNamespaceObject is slow
Saam Barati
Reported
2016-12-23 00:26:48 PST
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".
Attachments
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2016-12-23 02:54:31 PST
https://bugs.webkit.org/show_bug.cgi?id=160590
this one? Currently I think we can convert this access to CheckCell, GetClosureVar in DFG.
Saam Barati
Comment 2
2016-12-28 16:12:44 PST
(In reply to
comment #1
)
>
https://bugs.webkit.org/show_bug.cgi?id=160590
this one? > Currently I think we can convert this access to CheckCell, GetClosureVar in > DFG.
Yeah, this is a dupe. *** This bug has been marked as a duplicate of
bug 160590
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug