No project description provided
Project description
Pygeohash-Fast
A Fast geohasher for python.
Created by wrapping the rust geohash create with pyo3.
Huge shout out to the georust community :)
Currently very WIP, only supports encoding geohashes.
Speed Comparisons
Compared against the great python library pygeohash This isn't a perfect benchmark, but should illstrate what's possible. Tested on 1 million randomly generated lat/long pairs.
Results for Pygeohash
In [14]: %%timeit
...: [encode(lats[i], lngs[i], 8) for i in range(len(lats))]
...:
...:
10.8 s ± 77.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
Results for Pygeohash-fast encode:
In [16]: %%timeit
...: [fast_encode(lngs[i], lats[i], 8) for i in range(len(lats))]
...:
...:
3.44 s ± 11.4 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
However, in order to improve things in further when encoding many points we have methods for encoding many points at once.
In [19]: %%timeit
...: encode_many(lngs, lats, 8)
...:
...:
1.25 s ± 8.44 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
So for simple encoding this library is ~8.64 times faster.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygeohash_fast-0.1.0.tar.gz
(2.1 MB
view hashes)
Built Distributions
Close
Hashes for pygeohash_fast-0.1.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d4e764b4009b200106c92fd034b1d0217583900ca534199b913bb8b56816a03 |
|
MD5 | 0d4e72cc04e57259194d079adf40d3c2 |
|
BLAKE2b-256 | a75c9d67dcf5703664740506dfdb957a78c2f8d04c84d611ee36207f154495fd |
Close
Hashes for pygeohash_fast-0.1.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6bb9e039df5ace390dc77bc9351bc12e20cb8fac742ee2500e6a858c012b379 |
|
MD5 | c4ed0c17ca4eff0c83c3f9cd8ee4c603 |
|
BLAKE2b-256 | ca5db682372de6361575eb633a7f67fc72638734666c6f34c1100a970e10a4b3 |
Close
Hashes for pygeohash_fast-0.1.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b84748fa5ee7eeda2c07e50ecc8a005d0d858833ff868e802c44c3369f96a718 |
|
MD5 | e760c0255950bbe2e9617738d0f1f1db |
|
BLAKE2b-256 | 93da616057957925d0d14c1828d479499c3714983801fd3b00b046e37cac3331 |