geohash is a stable encoding algorithm. It should be a one time transformation of data point to a geohash value. Squeezing out absolute performance of the geohash algorithm is not practical use of time and resource.
If I have a billion of them to hash, it's still worth it to think about how to do the hashing more efficiently. Just because it's not something I need to do to a large dataset constantly doesn't mean that it's not worth thinking about how to do it efficiently because I only have to do it once.
7 comments
[ 3.1 ms ] story [ 24.1 ms ] threadOr if you prefer, geohash it JIT style, and once it's persisted, you don't run it again thereafter.