4 ms·
The slides from 2009 that the article links to are full of severely outdated advice[0]. I just gave the "parseInt" trick a try, for example, and the built-in wi
by vanderZwan 3y ago
The slides from 2009 that the article links to are full of severely outdated advice[0]. I just gave the "parseInt" trick a try, for example, and the built-in wins or is equal in performance[1] (although I'm mildly disappointed that `parseInt` isn't significantly faster).
[0] https://www.slideshare.net/madrobby/extreme-javascript-performance https://www.slideshare.net/madrobby/extreme-javascript-perfo...
[1] https://jsbenchit.org/?src=00e164b878d3c009649d4f8a9de6e7f6 https://jsbenchit.org/?src=00e164b878d3c009649d4f8a9de6e7f6
- lifthrasiir 3y agoIn fact at that point JS was so slow especially in MSIE that VBScript was often faster than equivalent JS. It was a rough time.