yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00704
Re: goReverse
> That will reduce the amount of swapping, because it will be
> done only when interaction is created. I feel that the speed
> improvement will be < 0.01% and that you are wasting your time with
> that. Remember that it's swapping only pointers, so it's roughly
> equivalent of std::swap(void*,void*).
I agree. From profiling I get own cost goReverse is < 0.01%...
For about 18000 spheres and 200 iteration I get
65% integral cost for MetaBody::MoveToNextTimeStep, when main cost is:
26% PersistentSAPCollider::action
10.8% ElasticContactLaw::action
10.8% InteractionGeometryMetaEngine::action
...rest < 6% on a function...
--
Best regards, Sergei D.
References