wayneeseguin/rvm — pull request #1496 by reaperhulk (2013-02-01 20:07:50+00:00)
Title: Enable OpenSSL ASM Optimizations

This patch removes the no-asm flag from the OpenSSL config directives if the build target is darwin64-x86_64-cc.

The openssl config scripts appear to properly determine whether or not no-asm should be used, so rather than accepting this pull request it's probably better to decide whether the no-asm flag should be entirely removed (maybe it is there for reasons I'm unaware of?).

The advantage to removing the flag is that it allows OpenSSL 1.0.1+ to utilize the AES-NI accelerated paths on Intel processors that support the extension. This results in a ~4-6x performance improvement in AES encryption throughput. There are also several optimized hash implementations that are significantly faster.

I've tested removing no-asm and compiling using clang (Apple/clang-421.11.66) on OS X 10.8.2 as well as gcc 4.7.2 on a Fedora 17 VM so far.