diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-03-13 09:39:45 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-13 15:16:02 +0000 |
commit | 1d5b45f7d938b15db9da9b12dc4d8b373abd6c7c (patch) | |
tree | a9750a4a7a32f8dce252288d31a3d2f07ed9d495 /Userland/Libraries/LibSQL/SQLClient.cpp | |
parent | 516d2f4892d98fc27814685bfc4af096eee029d4 (diff) | |
download | serenity-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/LibSQL/SQLClient.cpp')
0 files changed, 0 insertions, 0 deletions