You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
open console (chrome), run script from below and inspect printed result (~7)
add require('es6-shim') to index.js (devserver updates)
repeat step 4 and inspect another result (~105)
var test = Array.from({length: 100000}, () => 'a').join('.');
var start = new Date();
test.split(/\./)
console.log(new Date() - start);
Why is es6-shim Symbol.split implementation significantly slower than native implementation? Is it a bug or intented behaviour?
Also I don't understand, why Symbol.split gets polyfilled though chrome supports its implementation.
Thank you for response in advance.
The text was updated successfully, but these errors were encountered:
Steps I took to to reproduce issue:
require('es6-shim')
to index.js (devserver updates)Why is es6-shim Symbol.split implementation significantly slower than native implementation? Is it a bug or intented behaviour?
Also I don't understand, why Symbol.split gets polyfilled though chrome supports its implementation.
Thank you for response in advance.
The text was updated successfully, but these errors were encountered: