Closed
Bug 917509
Opened 12 years ago
Closed 1 year ago
Need fast paths (ICs?) for indexed access on DOM lists
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bzbarsky, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
10.96 KB,
text/html
|
Details |
On the attached testcase, only 30% of the time is under the DOM proxy handler's get(), and only 50% is under Proxy::get().
If we had faster paths here we could use them for a self-hosted array_slice too, perhaps.
![]() |
||
Comment 1•11 years ago
|
||
Is this op/s or time taken to complete?
My results are
Nightly: 77
Chrome 33: 93
IE 11: 386
![]() |
Reporter | |
Comment 2•11 years ago
|
||
The output of the testcase is nanoseconds per operation being tested.
![]() |
Reporter | |
Comment 3•11 years ago
|
||
And just for comparison, you should replace "l[j]" in the testcase with "l.item(j)", which is supposed to do more or less the same thing, to see how fast the code _could_ go in theory if this bug were fixed.
![]() |
||
Comment 4•11 years ago
|
||
(In reply to Boris Zbarsky [:bz] (reviews will be slow; ask someone else) from comment #3)
> And just for comparison, you should replace "l[j]" in the testcase with
> "l.item(j)", which is supposed to do more or less the same thing, to see how
> fast the code _could_ go in theory if this bug were fixed.
Then I get:
Nightly - 50
Chrome doesn't seem to like your idea - 2600
IE 11 - 327
![]() |
Reporter | |
Comment 5•11 years ago
|
||
Interesting. For me, Chrome (a 35 dev channel) build shows about the same number with both l.item(j) and l[j]...
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
![]() |
||
Comment 6•10 years ago
|
||
Browser: l[j] / l.item(j)
Chrome 39: 99 / 87
Firefox 34: 81 / 36
The difference got bigger in the last 9 months.
Updated•3 years ago
|
Severity: normal → S3
Comment 7•1 year ago
|
||
Nightly: 15-16
Chrome: 20-22
Should we mark this as fixed? (ni? :mgaudet as he seems to be on triage duty today)
Flags: needinfo?(mgaudet)
Comment 8•1 year ago
|
||
Yeah, let's resolve this as WORKSFORME. Thanks for the ping :)
Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(mgaudet)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•