Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from -O2 to -O3 in the makefile #454

Closed
noloader opened this issue Aug 4, 2017 · 1 comment
Closed

Switch from -O2 to -O3 in the makefile #454

noloader opened this issue Aug 4, 2017 · 1 comment

Comments

@noloader
Copy link
Collaborator

noloader commented Aug 4, 2017

The makefile uses -O2 as the default optimization level.

The source code can support -O3 as the optimization level. In fact, we support -O5, -Os and -Ofast. We regularly test them in cryptest.sh.

At -O3, GCC and other compilers will vectorize, meaning they will use SIMD units, like SSE and NEON, more frequently. When the compiler takes an opportunity it is often a non-trivial speedup.

Also see Switch from -O2 to -O3 as optimization default? on the mailing list.

@noloader
Copy link
Collaborator Author

Cut-in at Commit 18a05659f38d and Commit 1aecb3d4ad47.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant