Closed hrlai closed 3 years ago
The most time-consuming step by far is # Extract competition measures
spDists
is probably the key culprit, especially with distance matrix growing exponentially with increasing number of individuals in later time steps.
following from above, target inter.calc
and inter.dist.calc
to improve efficiency (both uses spDists
)
Several suggestions to improve the efficiency of calculating pairwise distances:
zz
and big.mat
are also extremely large and grow with number of individuals, but should be mitigated with parallerisation at the individual level with 24399f981a4458a4f1c04255d4e3851c104df191
Parallerisation partially fix the memory issue when run on each individual and omit things outside of grid boundaries. Close for now.
Prioritise improvement on choke points that are time consuming.