Re: "may or may not", that is the question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Fine wrote:
It is a complicated situation and you may find that the option to unroll loops makes the total program faster despite making most loops slower (a few inner loops that took a lot of time might get faster while loops that took less time get slower). But even that much is far from certain. The total program might get slower.

You could also consider compiling your program with -fprofile-generate/-fprofile-use. That way the compiler (hopefully) knows which loops to unroll and which not. I usually get a speed gain of several percent that way.

Jeroen.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux