Open joadnacer opened 6 months ago
Best option would likely be to implement vector-based base64 within bun to reduce external dependencies
The simdutf library, which is already present in Bun, has full support for WHATWG forgiving base64 decoding, as well as accelerated base64 encoding functions. In Node.js, the base64 encoding and decoding is currently done with simdutf.
What is the problem this feature would solve?
There exist possibly faster base64 libraries than aklomp that could be used
Benchmark results of various base64 libraries (on x86_64 with AVX512):
With:
aklomp's decoding speed seems suspiciously slow here, unsure why.
Steps to reproduce
Run with Zig 0.12.0-dev.3522+b88ae8dbd
What is the feature you are proposing to solve the problem?
Best option would likely be to implement vector-based base64 within bun to reduce external dependencies - happy to do this if interested. Likely can improve fastb64 decoding performance to match Turbo-Base64's.
Wrapping Turbo-Base64 is also a good option.
What alternatives have you considered?
No response