← Back to team overview

yade-users team mailing list archive

Re: [Question #657564]: continuous creation and destruction of bodies

 

Question #657564 on Yade changed:
https://answers.launchpad.net/yade/+question/657564

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hello,

Did you try using O.bodies.erase() (I guess you identified this
function) and see what happens, measuring if necessary memory
consumption ?

If you're a specialist of how pointer types affect memory consumption,
you may also give a look at the source code of this function in [1,2].

Jerome

(In short and as far as I'm concerned, I would not expect anything "bad"
as such an issue has already been discussed here / taken into account in
the code, if I'm not mistaken)

[1] https://github.com/yade/trunk/blob/master/core/BodyContainer.hpp
[2] https://github.com/yade/trunk/blob/master/core/BodyContainer.cpp

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.