wdv4758h / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

why is there no option to compile temalloc with -O3? #595

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed compilation is set with -O2 -g flags. I understand that temalloc 
provides more than just an optimized version of malloc, but is there any reason 
why switching to -O3 for production be a bad idea?

Original issue reported on code.google.com by MatthewA...@gmail.com on 24 Dec 2013 at 5:40

GoogleCodeExporter commented 9 years ago
-O2 is sane default. You can always ask for -O3 using standard autotools 
practice.

I.e. ./configure CXXFLAGS='-O3 -march=native -fomit-frame-pointer'

See INSTALL file for any autotools project. Note that INSTALL in gperftools 
starts with gperftool-specific instructions. You can find generic instructions 
after that.

Original comment by alkondratenko on 25 Dec 2013 at 9:07