4 ms·
His criticism still stands that the JS implementation of (number * number for number in nums) ...is inefficient, and that it could've been translated into m
by jffry 13y ago
His criticism still stands that the JS implementation of
(number * number for number in nums)
...is inefficient, and that it could've been translated into much more efficient JS than it was.
- city41 13y agoIt's really not inefficient though. Array.map will be much slower in just about all environments.
- hardwaresofton 13y ago[EDIT] - People have followed up, turns out the comprehension is faster.