Skip to main content

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.

Table Chart

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

base64perf-0.0.9.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

base64perf-0.0.9-cp310-cp310-macosx_15_0_arm64.whl (8.2 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

Details for the file base64perf-0.0.9.tar.gz.

File metadata

  • Download URL: base64perf-0.0.9.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for base64perf-0.0.9.tar.gz
Algorithm Hash digest
SHA256 b83f1f4725b0f8a3879e7dfe6e1b6061a3076b730f981678060e8c1deab309bd
MD5 7a4becfb27fe001816166ce3e9705a55
BLAKE2b-256 56a26304797642cd0797a2a93280b1b1450c99f4366808eff7c9592d33dac4a5

See more details on using hashes here.

File details

Details for the file base64perf-0.0.9-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for base64perf-0.0.9-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9c878154e8a71ac142d66f7eba174509840b38cae9543bb38ba0c57b61258930
MD5 c529901e98cdaa56ca9f9faccf04b8f9
BLAKE2b-256 a7cedec15479aec9778a7ecc052d062537a74f52a759e7abddfa9187628f78ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page