[flac-dev] Again about encoding speed of different compiles
Erik de Castro Lopo
mle+la at mega-nerd.com
Wed Oct 9 03:42:15 PDT 2013
lvqcl wrote:
> Encoding time, in seconds:
> GCC 32-bit: 180 (16% speedup)
> ICC 32-bit: 121 (7.5%)
> VS10 32-bit: 439 (sic!)
> VS12 32-bit: 440 (sic!)
>
> GCC 64-bit: 72.8 (9%)
> ICC 64-bit: 75.0 (8%)
> VS10 64-bit: 75.7 (7%)
> VS12 64-bit: 77.7 (7%)
>
>
> Also I wonder what other functions can also benefit from `restrict'
> keyword?..
For others to reference, this is the GCC documentations on __restrict:
http://gcc.gnu.org/onlinedocs/gcc/Restricted-Pointers.html
Googling suggests that use of restrict is a little controvertial. Eg:
http://stackoverflow.com/questions/2005473/rules-for-using-the-restrict-keyword-in-c
http://cellperformance.beyond3d.com/articles/2006/05/demystifying-the-restrict-keyword.html
http://blog.frama-c.com/index.php?post/2012/07/25/On-the-redundancy-of-C99-s-restrict
Also, do you have any idea why this causes such a slow down in VS10 and
VS12?
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the flac-dev
mailing list