← Back to team overview

yade-dev team mailing list archive

Re: ConstitutiveLawDispatcher (speed)

 

Václav S(milauer said:     (by the date of Wed, 11 Feb 2009 09:00:01 +0100)

> I was just running small benchmark (tension-compression test) on
> ConstitutiveLawDispatcher and it is consistently (2x repeated with
> almost same results) _faster_ than constitutive law as StandAloneEngine.
> 
> #0 is regular case, SnadAloneEngine doing all the computations in its
> loop. #1 is StandAloneEngine, but calling the functor in each loop,
> instead of computing by itself; #2 is ConstitutiveLawDispatcher (and
> using the functor, of course).  And the times are 16:07, 13:02 and
> 12:00. Surprising! Perhaps the compiler can optimize better if the code
> is in separate function?

incredible! More incentive for us to go into this *good* direction. I
wanted to do this for ages. And finally you have done this, you're
my hero! :-)

-- 
Janek Kozicki                                                         |



Follow ups

References