3 ms·
The main bottleneck in WebKit was Object.prototype.hasOwnProperty(). It wasn't optimized for the case where the argument is a concatenation of strings, e.g hasO
by awesomekling 12y ago
The main bottleneck in WebKit was Object.prototype.hasOwnProperty(). It wasn't optimized for the case where the argument is a concatenation of strings, e.g hasOwnProperty("foo" + someString).
I landed a fix here: https://trac.webkit.org/changeset/168549 https://trac.webkit.org/changeset/168549
- AshleysBrain 12y agoAwesome, good stuff. IIRC that only happens a lot if Set with forEach isn't supported, and it uses string properties on an object as a fallback.