Open Bug 1088189 Opened 10 years ago Updated 6 months ago

Improve performance of array natives for very sparse arrays

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: jandem, Unassigned)

References

(Depends on 3 open bugs, Blocks 1 open bug)

Details

See bug 1087963 and bug 1045391 for two bugs filed on this very recently.

Fixing this can dramatically improve performance (bug 1087963 has some numbers). V8 has special sparse-array paths for a lot of those natives and apparently IE is also fast (slice at least).

It will add some complexity, but with the right abstractions we can probably do this without duplicating too much code.

The least we should do is instrument the browser and see how often this hits in practice.
No longer blocks: 1045391, 1087963
Depends on: 1045391, 1087963
Another approach is speeding up the current GetElement code path. It won't be as fast but there are probably some easy wins there.
Depends on: 1158767
Depends on: 1384900
Severity: normal → S3

This sounds like this would still be a valid improvement.

Blocks: sm-runtime
Severity: S3 → N/A
Type: defect → enhancement
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.