From 1f90abdc1fb8cd253bd038d9af525838a74727ca Mon Sep 17 00:00:00 2001 From: Bjoern Rabenstein Date: Thu, 13 Feb 2014 12:37:43 +0100 Subject: [PATCH] Add -O3 to all C/C++ compiles. So far, we are compiling C/C++ code without any optimization. In non-representative, but practically relevant tests, the -O3 improved the total query time for a demanding graph by ~20%. Change-Id: I5e8123650e53a4933ed4fbe63d0b1ca67217b865 --- Makefile.INCLUDE | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.INCLUDE b/Makefile.INCLUDE index cadd6cf4f..856449359 100644 --- a/Makefile.INCLUDE +++ b/Makefile.INCLUDE @@ -58,9 +58,9 @@ export LOCAL_BINARIES=$(PREFIX)/bin export PATH := $(LOCAL_BINARIES):$(GOPATH)/bin:$(PATH) export LD_LIBRARY_PATH := $(PREFIX)/lib:$(LD_LIBRARY_PATH) -export CFLAGS := $(CFLAGS) -I$(PREFIX)/include -export CXXFLAGS := $(CXXFLAGS) -I$(PREFIX)/include -export CPPFLAGS := $(CPPFLAGS) -I$(PREFIX)/include +export CFLAGS := $(CFLAGS) -I$(PREFIX)/include -O3 +export CXXFLAGS := $(CXXFLAGS) -I$(PREFIX)/include -O3 +export CPPFLAGS := $(CPPFLAGS) -I$(PREFIX)/include -O3 export LDFLAGS := $(LDFLAGS) -L$(PREFIX)/lib export PKG_CONFIG_PATH := $(PREFIX)/lib/pkgconfig:$(PKG_CONFIG_PATH)