8 Apr
2009
8 Apr
'09
11:56 a.m.
Hicham Mouline a écrit :
So I am concerned about process(xbegin, xend, x, const S& s) // then access s.d1 and s.d2 as I measured it is slower than process(xbegin, xend, x, double d1, double d2)
How did you performed your benchmark ? Most modern compiler should produce similar code for those two interface. Are you sure you pass your structure by reference ? How large is your sample measures ? -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35