yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00964
shared_ptr<PhysicalAction>
-
To:
Yade Development Group <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
Václav Šmilauer <eudoxos@xxxxxxxx>
-
Date:
Tue, 17 Feb 2009 08:38:07 +0100
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.19) Gecko/20090105 Lightning/0.8 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666
Hi there, any reason PhysicalActionContainer contains shared_ptr's?
Wouldn't it be better to contain just array of PhysicalActions? It would
allow for very fast resetting with
memset(action[0],0,sizeof(thisAction)) and perhaps would save some
shared_ptr overhead we have currently. V.
Follow ups