A replacement for dict using hopscotch hashing.
Project description
py-hopscotch-dict
py-hopscotch-dict is a package that contains a replacement for the standard Python dict which implements the concepts of hopscotch hashing, as explained in the foundational paper.
Hopscotch hashing provides a number of benefits over the methods used in the standard dict implementation, most notably that insertions, deletions and lookups have an expected O(1) runtime.
py-hopscotch-dict has not been tested in a concurrent environment and thusly cannot be guaranteed to function correctly in conjunction with multi-threading, across multiple processes or in an asynchronous environment.
Usage
>>> from py_hopscotch_dict import HopscotchDict
>>> d = HopscotchDict()
>>> d["test"] = True
>>> d
HopscotchDict({'test': True})
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py-hopscotch-dict-2.1.2.tar.gz.
File metadata
- Download URL: py-hopscotch-dict-2.1.2.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab3923742c6749c3f06160e6e2aa13181c35f2057640b302775c1a048ca3cd60
|
|
| MD5 |
a9cc12b464e6f3e0e53ed0be3c2e9977
|
|
| BLAKE2b-256 |
a3bd88cc3df163458e2ee89ce0841a80fcedf08906e57079d2bff6006dcf1f7c
|
File details
Details for the file py_hopscotch_dict-2.1.2-py3-none-any.whl.
File metadata
- Download URL: py_hopscotch_dict-2.1.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed05e2ead52196b84d210a4c1758900b64f3c98170b12dfcccf77897e123df8d
|
|
| MD5 |
31af16431f0023f00be2f7220307fe3a
|
|
| BLAKE2b-256 |
8a560a73ae132928e1bea10bd0c7ea256c87bcd85f6456cc2f14b82762e541b4
|