You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After compilation, lex-unicode.cpp is huge. This increases download time for quick-lint-js, making the demo less fun.
JavaScript regular expressions can match based on Unicode character properties (e.g. /\p{L}/u for letters). For wasm-compiled code which runs in Node.js and in the browser, implement lexer::is_identifier_character and lexer::is_initial_identifier_character using JavaScript regexps instead of the existing lookup table.
I estimate this'll reduce uncompressed download sizes by about 130 KiB, and reduce compressed download sizes by about 30 KiB.
The text was updated successfully, but these errors were encountered:
After compilation, lex-unicode.cpp is huge. This increases download time for quick-lint-js, making the demo less fun.
JavaScript regular expressions can match based on Unicode character properties (e.g.
/\p{L}/u
for letters). For wasm-compiled code which runs in Node.js and in the browser, implement lexer::is_identifier_character and lexer::is_initial_identifier_character using JavaScript regexps instead of the existing lookup table.I estimate this'll reduce uncompressed download sizes by about 130 KiB, and reduce compressed download sizes by about 30 KiB.
The text was updated successfully, but these errors were encountered: