Re: [eigen] Mapping array of scalars into quaternions

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


2009/11/12 Mathieu Gautier <mathieu.gautier@xxxxxx>:
>
>> and does inlining the cross product result in a significant
>> performance improvement?
>
> I have not tested on my former code yet. I think that the difference will be
> very small. I am just comparing the generated code with the one generated
> with my previous math library.

ok. if there is no significant performance improvement, why bother
with EIGEN_STRONG_INLINE at all? In the long term, it is safest / most
comfortable to just let the compiler decide when to inline, possibly
using the "inline" keyword to give it a hint that it most probably
should.

The typical use case for EIGEN_STRONG_INLINE is with trivial
functions. Indeed Eigen uses very, very deep chains of trivial
function calls, in which case inlining becomes crucial, and compilers
may fail to understand that as that isn't a very usual situation for
them.

That's why i'm asking for some justification for EIGEN_STRONG_INLINE here.
I'll look at your patch as soon as possible today.
Benoit

>
> --
> Mathieu Gautier
>
>
>



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