Added some of the same compiler optimizations the C++ version gets
Merge pull request #29 from onionhammer/master

Added some of the same compiler optimizations the C++ version gets