These types store s and h in separate containers. For the vector implementation, this add 24 bytes per mutation with GCC. Changing from two vector<double> to one vector<pair<double,double>> would save that RAM, which would quickly add up for simulations with lots of mutations. The implications for types based on std::array are less clear.
These types store
s
andh
in separate containers. For the vector implementation, this add 24 bytes per mutation with GCC. Changing from twovector<double>
to onevector<pair<double,double>>
would save that RAM, which would quickly add up for simulations with lots of mutations. The implications for types based onstd::array
are less clear.