[eigen] Low performance in DEBUG mode

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi,

today I encountered a really strange thing: I compiled my unittest which need
in Release mode just about 3 sec, in Debug mode. It uses just some matrix
vector multiplication and the inverse computation. However in Debug mode it
needs about 3:32 minutes!!
A colleague of mine told me this could have to do with expression templates,
and as I've seen in the "We need more Gaels"-thread that Eigen uses a lot of
expression templates, I want to ask: Is this assumption true?, is there a way
around to compile my unit tests also in debug mode, but with a bit more
performance in the end?
Even setting our cmake build type to: RelWithDebugInfo resulting effective in
those CXX flags: "-g -DDEBUG -O2" shows no improvement. I assume this depends
on the "-DDEBUG", am I right?

best regards
Mathias

-- 
Institut für Informatik
Universität Leipzig
Johannisgasse 26, 04103 Leipzig
Phone: +493419732283



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/