Closed JosiahParry closed 2 years ago
Current dev is slow and computationally expensive. Try using it with data.table for speed and memory improvements
Data table was just as fast and slightly more computationally intensive. I think the current approach is slightly wrong and the data table one is more correct
It actually seems that the calculation is rather quick, but rather the permutations that take a long time median 152ms with lapply implementation and 550kb mem alloc. 157ms 900kb using data.table.
The permutation is what takes the longest allocation a lot more memory and time. Should take ~275mb of memory. It was taking far more than that ~700mb.
~Additionally, I think the calculation is slightly wrong. Must revise~ Edit: was just working on two separate samples lol
Development almost complete at https://github.com/JosiahParry/sfdep/tree/clcq
Only need to complete documentation.
Each function should have:
xtabs / length xij