.sort in orderByDistance
SnaiCrys opened this issue · 0 comments
SnaiCrys commented
.sort has very poor performance in v8 and it would be better to replace it with own implementation of sort
https://blog.mgechev.com/2012/11/24/javascript-sorting-performance-quicksort-v8/
https://stackoverflow.com/questions/38732480/native-javascript-sort-performing-slower-than-implemented-mergesort-and-quicksor