oxc/crates/oxc_parser/src/lexer
overlookmotel a8dc4f34b2
perf(parser): speed up parsing numbers with _ separators (#4259)
When parsing a number which contains `_` separators, rather than looping
through the string once to remove separators, and then again to convert
to an `f64`, do it all in a single loop.

Co-authored-by: overlookmotel <557937+overlookmotel@users.noreply.github.com>
2024-07-15 12:27:47 +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 chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
identifier.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
jsx.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
kind.rs feat(parser): parse modifiers with parse_modifiers (take 2) (#3977) 2024-06-30 03:46:34 +00:00
mod.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
number.rs perf(parser): speed up parsing numbers with _ separators (#4259) 2024-07-15 12:27:47 +08:00
numeric.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
punctuation.rs refactor(parser): lexer replace Chars with Source (#2288) 2024-02-05 13:51:46 +00:00
regex.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
search.rs refactor(parser): byte_search macro evaluate to matched byte (#2555) 2024-03-01 21:28:39 +08:00
source.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
string.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
template.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
token.rs chore: change all usages of static_assertions to dev-dependencies (#3654) 2024-06-13 13:18:53 +08:00
trivia_builder.rs refactor(ast)!: store span details inside comment struct (#4132) 2024-07-09 23:23:43 +08:00
typescript.rs fix(parser): correctly parse cls.fn<C> = x (#3208) 2024-05-09 10:23:45 +08:00
unicode.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
whitespace.rs refactor(parser): byte_search macro evaluate to matched byte (#2555) 2024-03-01 21:28:39 +08:00