Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information