|
From: SourceForge.net <no...@so...> - 2009-10-23 07:55:20
|
Bugs item #2884530, was opened at 2009-10-23 09:55 Message generated for change (Tracker Item Submitted) made by riccardolongoni You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2884530&group_id=12740 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Riccardo (riccardolongoni) Assigned to: Nobody/Anonymous (nobody) Summary: montecarlomodel.hpp Initial Comment: In file motecarlomodel.hpp, method MonteCarloModel<MC,RNG,S>::addSamples, line nb 99 reads: sample_type path = pathGenerator_->next(); Therefore a copy of path is made. This is not necessary, and in fact you can replace it with const sample_type & path = pathGenerator_->next(); This will improve the performances of the MonteCarlo simulations. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112740&aid=2884530&group_id=12740 |