Bug 275170

Summary: Consider using simd base64 encode/decode from simdutf
Product: WebKit Reporter: Sam Weinig <sam>
Component: Web Template FrameworkAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: hi, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Sam Weinig 2024-06-05 10:53:28 PDT
The simdutf project, https://github.com/simdutf/simdutf, in addition to having highly optimized unicode conversions has highly optimized/tested/fuzzed base64 encode/decode implementations, importantly including support for WHATWG-forgiving base64 -> https://github.com/simdutf/simdutf?tab=readme-ov-file#base64.

simdutf is licensed under a compatible Apache-2.0 / MIT licenses, so we should consider an import.

(our current implementation is entirely scalar)
Comment 1 Radar WebKit Bug Importer 2024-06-12 10:54:13 PDT
<rdar://problem/129694621>
Comment 2 Yusuke Suzuki 2024-07-22 20:36:29 PDT
Yes, I'm working on this right now.
Comment 3 Yusuke Suzuki 2024-07-22 20:37:07 PDT
We already adopted simdutf for Uint8Array toBase64. I will apply fromBase64 part too (having some patch already).