_splitByDist, optimized from 1716ms to 270ms