5 ms·
The array.join vs. string concat tip is bogus. Might have been true some years ago, but joining an array is only marginally faster in Firefox and even slower in
by phoboslab 16y ago
The array.join vs. string concat tip is bogus. Might have been true some years ago, but joining an array is only marginally faster in Firefox and even slower in Chrome than concatenating strings:
http://www.phoboslab.org/crap/jsarrayconcat.html http://www.phoboslab.org/crap/jsarrayconcat.html
- compay 16y agoGood to know. I've been reflexively doing that for many years now, and wasn't aware that JS implementations had finally optimized around it.