Bug 275170 - Consider using simd base64 encode/decode from simdutf
Summary: Consider using simd base64 encode/decode from simdutf
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-06-05 10:53 PDT by Sam Weinig
Modified: 2024-07-22 20:37 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).