|
|
|
|
|
by ballenf
3142 days ago
|
|
A trivial example is that a 'for' loop vs. 'while' loop can be faster on one browser compared to another. These differences are even starker if you use newer features without polyfills. For example, 'forEach' implementations as of a year ago varied by orders of magnitude. Native array sorting is another obvious one. Chrome, Firefox and especially Safari use quite different algorithms each based on array size with varying results. If you add up all those little changes and always go with the option that's fastest in Chromium, in a reasonably complex SPA you could easily generate noticeable differences. |
|