https://github.com/emmansun/base64
Base64 with SIMD acceleration
https://github.com/emmansun/base64
base64 go simd
Last synced: 9 months ago
JSON representation
Base64 with SIMD acceleration
- Host: GitHub
- URL: https://github.com/emmansun/base64
- Owner: emmansun
- License: bsd-3-clause
- Created: 2023-11-01T07:44:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T02:27:46.000Z (over 1 year ago)
- Last Synced: 2025-04-05T01:11:17.889Z (over 1 year ago)
- Topics: base64, go, simd
- Language: Go
- Homepage: https://godoc.org/github.com/emmansun/base64
- Size: 245 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-CN.md
- License: LICENSE
Awesome Lists containing this project
README
# base64
[English](README.md) | 简体中文
使用SIMD指令加速的Base64实现。
[](https://github.com/emmansun/base64/actions/workflows/ci.yml)
[](https://github.com/emmansun/base64/actions/workflows/arm64_qemu.yml)
[](https://github.com/emmansun/base64/actions/workflows/ppc64le_qemu.yml)
[](https://github.com/emmansun/base64/actions/workflows/s390x_qemu.yml)
[](https://codecov.io/gh/emmansun/base64)
[](https://goreportcard.com/report/github.com/emmansun/base64)
[](https://godoc.org/github.com/emmansun/base64)

[](https://github.com/emmansun/base64/releases)
## 优化的架构
- **AMD64** SSE/AVX/AVX2
- **ARM64** NEON
- **PPC64X**
- **S390X**
## 性能
关于性能,AMD64下的性能可以参考[English](README.md) 说明,ARM64下的性能请自行测试。另外需要说明的是,解码的时候,如果文本含有回车换行,当前实现没有优势。
本库已经在生产环境运行多时。
## 致谢
本项目的大部分纯Go代码源自 [golang base64](https://github.com/golang/go/tree/master/src/encoding/base64),本包的使用和Go语言的base64完全相同。
AMD64架构(特别是SSE版本)和ARM64架构的SIMD实现算法源自 [aklomp/base64](https://github.com/aklomp/base64)。