oxc/tasks/benchmark/benches
overlookmotel 3230ae5842 feat(semantic): add SemanticBuilder::with_excess_capacity (#5762)
Add `SemanticBuilder::with_excess_capacity` method to request that `SemanticBuilder` over-allocate space in `Semantic`'s `Vec`s.

Use this method to reserve 200% extra capacity for transformer to create more scopes, symbols and references.

200% is an unscientific guess of how much extra capacity is required. Obviously it depends on what transforms are enabled and content of the source code.
2024-09-14 15:02:16 +00:00
..
codegen.rs chore(benchmark): add codegen benchmark (#4207) 2024-07-11 23:58:37 +08:00
isolated_declarations.rs chore(benchmark): add isolated declarations (#4078) 2024-07-07 17:14:48 +08:00
lexer.rs perf(rust): use cow_utils instead (#5664) 2024-09-11 18:39:30 +08:00
linter.rs refactor(linter): add LintFilter (#5685) 2024-09-11 03:19:04 +00:00
minifier.rs perf(minifier): only visit arrow expression after dropping console.log (#4677) 2024-08-06 04:20:41 +00:00
parser.rs chore(tasks): parse regular expression in parser benchmark (#5212) 2024-08-26 13:11:09 +08:00
parser_napi.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
prettier.rs feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
semantic.rs refactor(semantic)!: remove source_type argument from SemanticBuilder::new (#5553) 2024-09-06 16:40:10 +00:00
sourcemap.rs chore: clippy::allow_attributes (#5521) 2024-09-06 03:07:02 +00:00
transformer.rs feat(semantic): add SemanticBuilder::with_excess_capacity (#5762) 2024-09-14 15:02:16 +00:00