3 ms·
This person seems to think that "less code" is "faster code". Yes, I do have to give some credits to putting the number x number directly into the push call A
by tlrobinson 13y ago
This person seems to think that "less code" is "faster code".
Yes, I do have to give some credits to putting the number x number directly into the push call
Are they really suggesting
_results.push(number * number);
is significantly faster than, say
var result = number * number;
_results.push(result);
Because it's not.
Though I do wonder why CoffeeScript doesn't do something like this to avoid the function call:
_results[_i] = number * number;