Summary: This diff changes compile to optimize for native platform by default. This will automatically turn on crc32 optimizations for modern processors, which greatly improves rocksdb's performance. I also did some more changes to compilation documentation. Test Plan: compile with `make`, observe -march=native compile with `PORTABLE=1 make`, observe no -march=native Reviewers: sdong, rven, yhchiang, MarkCallaghan Reviewed By: MarkCallaghan Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D30225main
parent
cef6f84393
commit
06eed650a0
@ -1,25 +0,0 @@ |
||||
#!/bin/sh |
||||
# Install gflags for mac developers. |
||||
|
||||
set -e |
||||
|
||||
DIR=`mktemp -d /tmp/rocksdb_gflags_XXXX` |
||||
|
||||
cd $DIR |
||||
wget https://gflags.googlecode.com/files/gflags-2.0.tar.gz |
||||
tar xvfz gflags-2.0.tar.gz |
||||
cd gflags-2.0 |
||||
|
||||
./configure |
||||
make |
||||
make install |
||||
|
||||
# Add include/lib path for g++ |
||||
echo 'export LIBRARY_PATH+=":/usr/local/lib"' >> ~/.bash_profile |
||||
echo 'export CPATH+=":/usr/local/include"' >> ~/.bash_profile |
||||
|
||||
echo "" |
||||
echo "-----------------------------------------------------------------------------" |
||||
echo "| Installation Completed |" |
||||
echo "-----------------------------------------------------------------------------" |
||||
echo "Please run \`. ~/.bash_profile\` to be able to compile with gflags" |
Loading…
Reference in new issue