Skip to content

C optimization to run sha256/512 over numpy arrays

Notifications You must be signed in to change notification settings

LaRiffle/shaloop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shaloop 🚣‍

Rust optimization to run SHA256 over Numpy arrays.

Installation

pip install shaloop

Development instructions

Build, install and test locally

Activate a new virtual env, install Maturin and a Rust toolchain. Run:

maturin develop --release -b cffi

The Python package is now installed. Note: clean your PYTHONPATH to remove the package if necessary.

Test and benchmark

python test/test_shaloop.py
python test/test_shaloop_512.py

If you have the old C version of Shaloop installed, you can run a benchmark with:

python test/benchmark.py

Build and publish

docker run --rm -v $(pwd):/io konstin2/maturin publish -b cffi --manylinux 2010 -u __token__ -p pypi-your-token