3 ms·
The compiler needs to be extremely clever on @tailrec for not blowing up the L1 cache on this code. To me, this looks like a perfect example of a developer thi
by hota_mazi 10y ago
The compiler needs to be extremely clever on @tailrec for not blowing up the L1 cache on this code.
To me, this looks like a perfect example of a developer thinking they're very smart while they're actually writing code that's worse that its naive counterpart version (a good summary of Scala in my experience).
- jnordwick 10y agoCan you please explain why it would blow up the L1 cache?