Skip to main content

Fast Base64 encoding/decoding with SSE2 and VSX optimizations

Project description

Base64Perf

A faster base64 encoding/decoding library for Python, implemented in C with SSSE3 and VSX optimizations.

Installation

pip install base64perf

Usage

from base64perf 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.11.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.11-cp310-cp310-macosx_15_0_arm64.whl (11.4 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: base64perf-0.0.11.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.11.tar.gz
Algorithm Hash digest
SHA256 e174d5638124a14eb5d7a57100d330aab8beec9ff8d02773f67d2f1c6c1b55ac
MD5 87648a996e90eb5177561f90a623f104
BLAKE2b-256 ddab385824f5bc7814489d32bcb9953e9fd4b527d4fc07014adf019808008346

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for base64perf-0.0.11-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f19ddcb67d55857447c042577f4809d39ed2a1de3a59f12d49b4ec34cbb2e378
MD5 234739b37f6260de17277c499c9f4414
BLAKE2b-256 ab609dccb9fd76cd48675e6474f20cf1a2b1b47bc7b479668d27bc6813ddc8bd

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