
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
A Python package implementing improved open‐addressing hash tables based on the paper "Optimal Bounds for Open Addressing Without Reordering".
This package implements two new open‐addressing hash tables inspired by the research paper
Optimal Bounds for Open Addressing Without Reordering
Martín Farach‐Colton, Andrew Krapivin, William Kuszmaul
Link
In this implementation I provide:
Both tables support insert(key, value)
and search(key)
operations (as well as Python’s “in” and len()
).
Install via pip:
pip install optopenhash
Clone the repository and install via pip:
bash
git clone https://github.com/sternma/optopenhash.git
cd optopenhash
pip install .
from optopenhash import ElasticHashTable, FunnelHashTable
# Create a table with capacity 1000 and delta = 0.1 (so up to 900 insertions)
etable = ElasticHashTable(capacity=1000, delta=0.1)
fhtable = FunnelHashTable(capacity=1000, delta=0.1)
# Insert some key-value pairs
for i in range(800):
etable.insert(f"key{i}", f"value{i}")
fhtable.insert(f"key{i}", f"value{i}")
# Search for a key
print(etable.search("key123"))
print(fhtable.search("key123"))
A basic test suite is provided in the tests
directory. To run the tests use:
pytest tests
FAQs
A Python package implementing improved open‐addressing hash tables based on the paper "Optimal Bounds for Open Addressing Without Reordering".
We found that optopenhash demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.