Python fastxor extension module
Afraid of red status ? Please click on the link, sometimes this is not my fault ;-)
A C++ fast XOR implementation strongly inspired by eryksun’s stackoverflow post.
Here are the results on my workplace desktop computer (Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz):
Method Name |
Time |
Speep-up |
|---|---|---|
xor_inplace_loop |
0.444 |
1.000 |
xor_list_comprehension |
0.237 |
1.877 |
numpy.bitwise_xor |
0.00175 |
252.986 |
fastxor.fast_xor_inplace |
0.00125 |
356.339 |
What the release number stands for ?
I do my best to follow this interesting recommendation : Semantic Versioning 2.0.0
How to install it (Python 2.7) ?
Install some packages that are not handled by pip:
sudo apt-get install gfortran python-dev python-pip
Make sure that pip is up-to-date (PIPception):
sudo pip-2.7 install --upgrade pip
Then, you only need to run setup.py:
python2 setup.py test sudo python2 setup.py install
How to install it (Python 3.3) ?
Install some packages that are not handled by pip:
sudo apt-get install gfortran python3-dev python3-pip
Make sure that pip is up-to-date (PIPception):
sudo pip-3.3 install --upgrade pip
Then, you only need to run setup.py:
python3 setup.py test sudo python3 setup.py install
Sometimes numpy setup fails, just run sudo pip-3.3 install numpy to solve this.
How to check coverage ?
python setup.py test xdg-open tests/cover/index.html
How to use it ?
This extension module gives you access to fast_xor_inplace and fast_xor (… TODO).
2013 - David Fischer
Metadata
Release files for fastxor 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fastxor-0.1.6.tar.gz | 3.8 kB | Without provenance | Details |
Release files / fastxor-0.1.6.tar.gz
| Download URL | fastxor-0.1.6.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f04d3ea3a2343fda6f210b25f86c47385ab83b7fcb79cd1459fdf9ca6aae27f
|
|
BLAKE2b-256 checksum How to use checksums |
e18f900e8d2a07b0b3db6f7e3201dd0e440138a8dc64278ca5b2eefd154fece8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fastxor 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.