oxc/crates/oxc_parser/src/lexer
overlookmotel fdb31c39c9
perf(parser): more efficient number parsing (#3342)
Follow-on after #3296.

Make parsing binary/octal/hex numeric literals a little more efficient.

These changes all rely on that we know more than the compiler does -
that strings passed to these `parse_*` functions can only contain a
certain set of characters.
2024-05-21 10:53:52 +08:00
..
byte_handlers.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
comment.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
identifier.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
jsx.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
kind.rs fix(parser): correctly parse cls.fn<C> = x (#3208) 2024-05-09 10:23:45 +08:00
mod.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
number.rs perf(parser): more efficient number parsing (#3342) 2024-05-21 10:53:52 +08:00
numeric.rs perf(lexer): dedupe numeric separator check (#3283) 2024-05-15 01:48:21 +00:00
punctuation.rs refactor(parser): lexer replace Chars with Source (#2288) 2024-02-05 13:51:46 +00:00
regex.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
search.rs refactor(parser): byte_search macro evaluate to matched byte (#2555) 2024-03-01 21:28:39 +08:00
source.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
string.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
template.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
token.rs perf(lexer): dedupe numeric separator check (#3283) 2024-05-15 01:48:21 +00:00
trivia_builder.rs perf(lexer): improve comment building performance by using a vec instead of btreemap (#3186) 2024-05-07 16:43:27 +08:00
typescript.rs fix(parser): correctly parse cls.fn<C> = x (#3208) 2024-05-09 10:23:45 +08:00
unicode.rs refactor(parser,diagnostic): one diagnostic struct to eliminate monomorphization of generic types (#3214) 2024-05-11 04:56:22 +00:00
whitespace.rs refactor(parser): byte_search macro evaluate to matched byte (#2555) 2024-03-01 21:28:39 +08:00