Fast Base64 encoding/decoding with SSE2 and VSX optimizations
Project description
Base64C
A faster base64 encoding/decoding library for Python, implemented in C with SSSE3 and VSX optimizations.
Installation
pip install base64c
Usage
from base64c import b64encode, b64decode
print(b64encode(b"Hello, World!"))
print(b64decode(b64encode(b"Hello, World!")))
License
MIT
Performance
- 3-24x faster than the stdlib
base64
module. - Performance increases with input size.
- Tested across different types and sizes of inputs.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
base64c-0.0.6.tar.gz
(2.7 MB
view details)
File details
Details for the file base64c-0.0.6.tar.gz
.
File metadata
- Download URL: base64c-0.0.6.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4798ef77704a81c78b4e833ab357a622b4acb6f7a89aca3644e539ab13a8e7f3 |
|
MD5 | d521cb5be9a4bb32aed383a62c3eb5d7 |
|
BLAKE2b-256 | 9c9f44e26486dbd4305abc65ad14fa5e9085d0a145303ebbf0551703b1586910 |