On 12/26/2014 3:09 PM, Mike Pontillo wrote:

>     Given the fact that various combinations of 'inline' and other
> keywords result in undefined (or at least inconsistently-defined)
> behavior, I prefer to rely on behavior that will be consistent across
> all supported platforms. (That is, unless there is a compelling reason
> to enable platform-specific compiler optimizations, I would prefer to
> keep the code simple and clear.)

+1

First, optimizing compilers really don't need these hints anymore.  As 
Mike says, write clear, portable code.  Let the compiler do the rest.

Second, if you profile security applications, you usually find that 
optimizing your code down to nothing will have no measurable effect on 
performance.  One RSA operation, or even a hash, and everything else is 
down in the noise.

It's not worth the programming time, non-portability, and bugs.



------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to