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
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
cbase64-0.0.9.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file cbase64-0.0.9.tar.gz
.
File metadata
- Download URL: cbase64-0.0.9.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68a85cd5a707cc2176cb025d91a76d1892fbec9a0e6fe5d20bffc99604e7c497 |
|
MD5 | d9c39b62ea89919626185f6eee581a3d |
|
BLAKE2b-256 | 1311148698c59e154a014afaaf54580291eb5c7424f4b895b5c87f6d4a1faa48 |
File details
Details for the file cbase64-0.0.9-cp310-cp310-macosx_13_0_arm64.whl
.
File metadata
- Download URL: cbase64-0.0.9-cp310-cp310-macosx_13_0_arm64.whl
- Upload date:
- Size: 8.1 kB
- Tags: CPython 3.10, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1cd2c3775b51d697d89ee5568d45b34bdb384244a224456a62e0b7d8b951be0 |
|
MD5 | d3cc40c09577013880d49f442ff82d9f |
|
BLAKE2b-256 | 8c38a0fe2d55f7d7dd2a39b34ffba42e19fdc31401e456ebfbf1c9cbc1ca4ec2 |