diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-13 23:20:58 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-14 02:48:57 +0200 |
commit | a50e33abe3a34aba965e329a615eab4d87227e4c (patch) | |
tree | a5335ac2bb27813d66a793e041ec6db1f96fc1b7 /Documentation/Patterns.md | |
parent | e4d97add3da0de8d75ddbcd1950420f33ee03904 (diff) | |
download | serenity-a50e33abe3a34aba965e329a615eab4d87227e4c.zip |
LibJS: Skip ID_{Start,Continue} property lookup for any ASCII characters
Before this change, Lexer::is_identifier_{start,middle}() would do a
Unicode property lookup via Unicode::code_point_has_property() quite
frequently, especially for common characters like .,;{}[]() etc.
Since these and any other ASCII characters not covered by the alpha /
alphanumeric check are known to not have the ID_Start / ID_Continue
(except '_', which is special-cased now) properties, we can easily
avoid this function call.
Diffstat (limited to 'Documentation/Patterns.md')
0 files changed, 0 insertions, 0 deletions