Open Bug 1088189 Opened 10 years ago Updated 1 year ago
Improve performance of array natives for very sparse arrays
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.
Another approach is speeding up the current GetElement code path. It won't be as fast but there are probably some easy wins there.
You need to log in before you can comment on or make changes to this bug.