diff options
author | filipe oliveira <filipecosta.90@gmail.com> | 2022-11-24 16:09:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 18:09:56 +0200 |
commit | ae1de549006c1f15bade4969ba25932e3509f17a (patch) | |
tree | 7cb462149690e95efe363011f975c46d79698105 /src/blocked.c | |
parent | ca174e1d47a6bd9ae12868e0c577d98c177dee74 (diff) | |
download | redis-ae1de549006c1f15bade4969ba25932e3509f17a.tar.gz |
GEOSEARCH BYBOX: Reduce wastefull computation on geohashGetDistanceIfInRectangle and geohashGetDistance (#11535)
Optimize geohashGetDistanceIfInRectangle when there are many misses.
It calls 3x geohashGetDistance. The first 2 times we call them to produce intermediate results.
This PR focus on optimizing for those 2 intermediate results.
1 Reduce expensive computation on intermediate geohashGetDistance with same long
2 Avoid expensive lon_distance calculation if lat_distance fails beforehand
Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'src/blocked.c')
0 files changed, 0 insertions, 0 deletions