Re: [eigen] speedup debug mode

[ Thread Index | Date Index | More Archives ]


and with precompiled headers, just perfect!
kind of magic to see ~10% speed gain, between u = 1.123 * v.array() + 5.236 * w.array() and the for loop equivalent.


Le 06/10/2011 00:06, Benoit Jacob a écrit :
2011/10/5 Gael Guennebaud<gael.guennebaud@xxxxxxxxx>:
Asserts are not very costly though you can disable Eigen's one with
-DEIGEN_NO_DEBUG.  The real slow down comes from the lack of inlining
and basic optimization. Compiling with -O1 -g2 usually gives a good
Inlining is very important indeed, and -O1 won't give you that. You
could try -O1 -finline-functions if inlining is acceptable in your use


Mail converted by MHonArc 2.6.19+