Closed colganwi closed 11 months ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
d53e6d9
) 79.49% compared to head (cf2cbc2
) 79.53%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Also, speeds up the BirthDeathFitnessSimulator
since a large proportion of this simulations time is spent cleaning up dead lineages.
This PR makes the
UniformLeafSubsampler
~50X faster for large trees by improvingremove_leaves_and_prune_lineages
. Specifically, instead of checking internal nodes many times, we are now using a heap to check internal nodes in order from the bottom of the tree to the top. Additionally, the__network
now is modified directly which avoids repeated calls to__check_network_initialized()
.