From b65b0c367e53dbfacda333fe00866eef3cf90177 Mon Sep 17 00:00:00 2001 From: Chris Beall Date: Fri, 11 Dec 2009 04:47:52 +0000 Subject: [PATCH] Significant performance gains can be achieved by compiling gtsam with NDEBUG defined. This causes uBLAS to be optimized. 5x speedup on large factor graph, 10x speedup on smaller one. --- myconfigure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/myconfigure b/myconfigure index 8b40b3a2f..255320f37 100755 --- a/myconfigure +++ b/myconfigure @@ -1 +1,4 @@ ./configure --prefix=$HOME --with-toolbox=$HOME/toolbox/ --with-boost=/opt/local/include/ + +# for maximum performance on Intel Core2 platform: +# ./configure --prefix=$HOME --with-toolbox=$HOME/toolbox/ --with-boost=/opt/local/include/ CXXFLAGS="-O3 -march=nocona -mtune=generic -NDEBUG" \ No newline at end of file