It would still be faster with a two layer approach. Check 100 000 entries (4 comparisons each) - > filter out 1% to do expensive calculations on. Vs Check 25 cities (4 comparisons each) - > filter out 1/25 Do another…
It would still be faster with a two layer approach. Check 100 000 entries (4 comparisons each) - > filter out 1% to do expensive calculations on. Vs Check 25 cities (4 comparisons each) - > filter out 1/25 Do another…