Mail Archives: djgpp/1998/05/07/10:07:01
On Thu, 7 May 1998, Johan Van Ooijen wrote:
> >Another possibility might be the size of your innermost loop: if it
> >sometimes overflows the CPU caches, you will see a factor of 2-4 in
> >performance without any apparent explanation.
>
> How does this happen?
If your inner loop has conditionals (if (foo) etc.) which only sometimes
fire, then the size of the code executed on each iteration will vary. If
that size becomes more than the CPU cache, runtime will suffer.
- Raw text -