Remix.run Logo
measurablefunc 2 hours ago

Fewer instructions doesn't mean it's faster. It can be faster but it's not guaranteed in general. Obvious counterexample is single threaded vs multi-threaded code. Single threaded code will have fewer instructions but won't necessarily be faster.

saagarjha 2 hours ago | parent [-]

It does in this case; you can read the assignment to see that it is all single-threaded