4 ms·
Geohash in Golang Assembly (2018)
- jordache 8y agogeohash 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.
- gloflo 8y agoBut you see, the author described this absurd optimisation as fun. Fun is a very practical use of time and resource!
- AnanasAttack 8y agoYou're right: No fun is EVER allowed. Is that a smile on your face? Doesn't look very productive to me, now get back to work.
- simcop2387 8y agoWhat if I need to do this to a large dataset that hasn't been geohashed before?
- jordache 8y agoYou run it once, and on each new data element you introduce into the collection. Or if you prefer, geohash it JIT style, and once it's persisted, you don't run it again thereafter.
- simcop2387 8y agoIf 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.
- gloflo 8y agoThat was educating and fun, thanks for sharing!