GotelliLab / EcoSimR

Repository for EcoSimR, by Gotelli, N.J. , Hart E. M. and A.M. Ellison. 2014. EcoSimR 0.1.0
http://ecosimr.org
Other
27 stars 10 forks source link

speed up sim9 single #55

Closed davharris closed 9 years ago

davharris commented 9 years ago

This speeds the swapping up by a factor of 2

Most of the speed-up is from omitting the check for missing species. Since sim9 retains row sums, the check only needs to happen once per model instead of once per swap.

coveralls commented 9 years ago

Coverage Status

Coverage decreased (-2.26%) to 94.95% when pulling f5aa9e74de071fd17b4081e4857b421d0c09409e on davharris:patch-2 into 179626a64ecdcfbc1a74e5e1df23e9f7ac73a412 on GotelliLab:master.

emhart commented 9 years ago

Hmm, I wonder if I could just pull out where we trim the matrix. I'll merge and then fix it up and fix the tests.