BWSAL::Base::getMinerals() and getGaseysers() are currently
std::set<BWAPI::Unit *> getMinerals() const;
but for efficiency's sake, this should probably be
const std::set<BWAPI::Unit *> & getMinerals() const;
since BWTA::BaseLocation::getMinerals() returns a reference to a set. Not
returning a reference calls the copy constructor every time the method is
called and is pretty inefficient.
Original issue reported on code.google.com by dave.chu...@gmail.com on 25 Oct 2010 at 8:26
Original issue reported on code.google.com by
dave.chu...@gmail.com
on 25 Oct 2010 at 8:26