diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-13 12:44:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-13 14:44:36 +0100 |
commit | 3d9f2e2f94074e1705b5fe3a5fefa95ee669fdb5 (patch) | |
tree | b935c7156dcb8bb97065fdf1210cfe56b025962a /Userland/Libraries/LibRegex | |
parent | c74b6c06a55cb7c15b586538a44d1017f2a33c78 (diff) | |
download | serenity-3d9f2e2f94074e1705b5fe3a5fefa95ee669fdb5.zip |
LibJS: Add ASCII fast path to Lexer::current_code_point()
If the current character under the lexer cursor is ASCII, we don't need
to create a Utf8View to consume a full code point.
This gives a ~3% speedup when parsing the largest Discord JS file.
Diffstat (limited to 'Userland/Libraries/LibRegex')
0 files changed, 0 insertions, 0 deletions