archives

« Bugzilla Issues Index

#2607 — Performance optimizations for Array.prototype.unshift and Array.prototype.reverse


These methods are sub-optimal because they trigger more proxy traps than necessary. Thankfully they can be fixed because the changes I propose should be non-observable without proxies. With proxies, FF and Chrome are already doing what I propose here, so this should not be controversial.

Unshift: https://gist.github.com/bterlson/10077836
Reverse: https://gist.github.com/bterlson/9838408


fixed in rev24 editor's draft


fixed in rev24