summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibArchive
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-03-13 09:39:45 -0400
committerLinus Groh <mail@linusgroh.de>2023-03-13 15:16:02 +0000
commit1d5b45f7d938b15db9da9b12dc4d8b373abd6c7c (patch)
treea9750a4a7a32f8dce252288d31a3d2f07ed9d495 /Userland/Libraries/LibArchive
parent516d2f4892d98fc27814685bfc4af096eee029d4 (diff)
downloadserenity-1d5b45f7d938b15db9da9b12dc4d8b373abd6c7c.zip
AK: Compute UTF-8 code point lengths using only leading bytes
We don't need to decode the entire code point to know its length. This reduces the runtime of decoding a string containing 5 million instances of U+10FFFF from over 4 seconds to 0.9 seconds.
Diffstat (limited to 'Userland/Libraries/LibArchive')
0 files changed, 0 insertions, 0 deletions