2 ms·
An L1 cache hit is 4 cycles of latency. As for your second question, my guess is you're looking at unoptimized code. Most compilers keep variables on the stack
by jcranmer 7y ago
An L1 cache hit is 4 cycles of latency.
As for your second question, my guess is you're looking at unoptimized code. Most compilers keep variables on the stack unless you're optimizing the code to at least some degree.