Settings

Theme

Show HN: Turbo Base64 library. AVX512 Faster than memcpy and any other base64

github.com

5 points by powturbo 3 years ago · 4 comments

Reader

powturboOP 3 years ago

- 100% C (C++ headers), as simple as memcpy

- No other base64 library encode or decode faster

- Scalar can be faster than other SSE or ARM Neon based base64 libraries

- SSE faster than other SSE/AVX/AVX2! base64 library

- Fastest AVX2 implementation TurboBase64 AVX2 decoding up to ~2x faster than other AVX2 libs.

- TurboBase64 is 3-4 times faster than other libs for short strings

- Fastest ARM Neon base64

- (2023.04) avx512 - 2x faster than avx2, faster than any other implementation

- Dynamic CPU detection and JIT scalar/sse/avx/avx2/avx512 switching

- Base64 robust error checking, optimized for long+short strings

- Portable library, 32/64 bits, SSE/AVX/AVX2/AVX512, ARM Neon, Power9 Altivec

- OS:Linux amd64, arm64, Power9, MacOs+Apple M1, s390x. Windows: Mingw, visual c++

- Big endian + Little endian

- Ready and simple to use library, no armada of files, no hassles dependencies

jacobn 3 years ago

Neat library, upvoted.

Question: does this business model work well? The GPL+commercial license on request?

I’m hoping the answer is yes, would be great with some nuance/details/exposition, thanks!

  • powturboOP 3 years ago

    There is nothing to earn from non GPL license, maybe some small reputation and more stars on github, but that's all. Contribution is minimal if any, and when then you have more work. Dual license is better so others can't complain, they can't use your library because of GPL.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection