ladybird/Userland/Libraries/LibWeb/Infra
Timothy Flynn bfc9dc447f AK+LibWeb: Replace our home-grown base64 encoder/decoders with simdutf
We currently have 2 base64 coders: one in AK, another in LibWeb for a
"forgiving" implementation. ECMA-262 has an upcoming proposal which will
require a third implementation.

Instead, let's use the base64 implementation that is used by Node.js and
recommended by the upcoming proposal. It handles forgiving decoding as
well.

Our users of AK's implementation should be fine with the forgiving
implementation. The AK impl originally had naive forgiving behavior, but
that was removed solely for performance reasons.

Using http://mattmahoney.net/dc/enwik8.zip (100MB unzipped) as a test,
performance of our old home-grown implementations vs. the simdutf
implementation (on Linux x64):

                Encode    Decode
AK base64       0.226s    0.169s
LibWeb base64   N/A       1.244s
simdutf         0.161s    0.047s
2024-07-16 10:27:39 +02:00
..
ByteSequences.cpp LibWeb: Refactor XHR (almost) exactly to the spec 2023-03-07 11:51:12 +00:00
ByteSequences.h LibWeb: Refactor XHR (almost) exactly to the spec 2023-03-07 11:51:12 +00:00
CharacterTypes.h LibJS+LibWeb: Add a bunch of missing includes 2023-03-06 13:05:43 +00:00
JSON.cpp LibJS: Make PrimitiveString::utf8_string() infallible 2023-08-09 17:09:16 +02:00
JSON.h LibWeb: Propagate Realm instead of VM more through Fetch 2023-03-07 11:51:12 +00:00
Strings.cpp LibWeb: Implement an AO to normalize newlines in a string 2024-03-16 13:11:57 +01:00
Strings.h LibWeb: Implement an AO to normalize newlines in a string 2024-03-16 13:11:57 +01:00