yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #05806
Re: [Question #192485]: O.load and O.loadTmp influences calculation speed ?!
Question #192485 on Yade changed:
https://answers.launchpad.net/yade/+question/192485
Chareyre proposed the following answer:
Hehehe
You forgot to mention these in your question:
if bla:
O.saveTmp()
O.loadTmp()
start_time = O.realtime
O.run(1000,True)
stop_time = O.realtime
So, you are not comparing loadTmp() vs. load(). You comparing loading
vs. NOT loading.
Comparing would need this:
if bla:
O.saveTmp()
O.loadTmp()
else:
O.save("bla.yade")
O.loadTmp("bla.yade")
Clearly, some internals are not saved with the simulation (e.g. the collider has to regenerate itself), so loading introduces some initialization operations.
In addition, be careful, you are not comparing the same number of iterations in your exemple above (1000 vs. 1100).
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.