I believe that our current functions for computing the max-min ordering and nearest neighbors could be improved to reduce running time. Specifically, I believe our current implementations are O(n^2) but O(n*log(n)) algorithms exist. See this paper for details:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6707751/
I think there are other optimizations that would give us more bang for our buck, so this is low priority for now. But I wanted to log it so we don't forget about it.