https://github.com/jedisct1/zig-base91
Base91 encoding for Zig.
https://github.com/jedisct1/zig-base91
base64 base91 codec zig zig-package
Last synced: about 1 month ago
JSON representation
Base91 encoding for Zig.
- Host: GitHub
- URL: https://github.com/jedisct1/zig-base91
- Owner: jedisct1
- License: mit
- Created: 2025-03-13T11:42:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-13T12:07:35.000Z (over 1 year ago)
- Last Synced: 2025-03-13T12:35:00.228Z (over 1 year ago)
- Topics: base64, base91, codec, zig, zig-package
- Language: Zig
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Base91 for Zig
An implementation of the Base91 encoding scheme written in Zig.
It enables you to convert binary data to a Base91-encoded string and vice versa.
## Overview
- **Space Efficiency:** Base91 produces shorter encoded strings compared to Base64, which can be advantageous when minimizing data size is a priority.
- **Performance Trade-Off:** Although Base91 is more space-efficient, its encoding/decoding operations are generally slower than those of Base64. This trade-off should be considered based on your application’s requirements.
## Considerations
- **When to Use:** Opt for Base91 when reducing the size of encoded data is critical, such as in bandwidth-constrained environments or when storing large volumes of encoded data.
- **When to Avoid:** If your application is performance-sensitive and the encoding/decoding speed is paramount, Base64 might be a more suitable alternative.