The algorithms implemented in #789 and #790 follow the recursive approach implemented in the PhyloMeasures package.
It should be possible to linearise these, in many cases by working up the tree from the tips. This will avoid deep recursion and allow more direct caching approaches that avoid method calls.
The algorithms implemented in #789 and #790 follow the recursive approach implemented in the PhyloMeasures package.
It should be possible to linearise these, in many cases by working up the tree from the tips. This will avoid deep recursion and allow more direct caching approaches that avoid method calls.
This could probably be done in tandem with #793.