Re: [eigen] speedup debug mode

[ Thread Index | Date Index | More Archives ]

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
> tradeoff.

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+