Thread Previous • Date Previous • Date Next • Thread Next |
Václav Šmilauer a écrit :
I thought it would be used for parallelisation. If not, I'm all for removing shared_pointers when it is possible.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.
B.
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@xxxxxxxxxxxxxxxxxxx Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp
-- _______________ Chareyre Bruno Maitre de conference Grenoble INP Laboratoire 3SR - bureau E145 BP 53 - 38041, Grenoble cedex 9 - France Tél : 33 4 56 52 86 21 Fax : 33 4 76 82 70 43 ________________
Thread Previous • Date Previous • Date Next • Thread Next |