No project description provided
Project description
Pygeohash-Fast
A Fast geohasher for python.
Created by wrapping the rust geohash crate 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 [22]: %%timeit
...: encode_many(lngs, lats, 8)
155 ms ± 3.58 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
So for simple geohash encoding this library is ~69x times faster, nice.
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
Built Distributions
Hashes for pygeohash_fast-0.2.0-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b698b1c018e67528c87f779a7ef64858d41725b7d862d586f4b740ca9b60dc7 |
|
MD5 | 619ff781e071634aec78b692aae9fdfb |
|
BLAKE2b-256 | efc6920d0467a3250029ab32cffd5bdcf3547effa7bebd1e180b32a12612afd4 |
Hashes for pygeohash_fast-0.2.0-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df685ea7f23d690d750dd4504f7eb54f7e8ee3c688ae56bf15a51979efed0af5 |
|
MD5 | caaeae540a9fc00850574861a6337043 |
|
BLAKE2b-256 | eaad8a6c82be74b4497ddc4a893f315ca394877c89ac40ca2bc6f6816707d6c4 |
Hashes for pygeohash_fast-0.2.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be4d12cdbf2d9c48280c77280965694f588a866c1179e66cb4fa6c12f1a2a46f |
|
MD5 | 266770b76386bb34e6620bedc8433891 |
|
BLAKE2b-256 | 7d0fcf0f4c6bd1b805d2e916ffc2a05dd3cab81e4ebe35a115fa2c480f90624e |