oxc/crates
overlookmotel 39afb48025 feat(allocator): introduce Vec::from_array_in (#7331)
Because we lack specialization in stable Rust, `Vec::from_iter_in` is unable to take advantage of the fact that `[T; N]` has a statically knowable size.

Introduce `Vec::from_array_in` for this case, which should be able to create the `Vec` with a single static-sized memcpy, or may allow the compiler to see that it can construct the array directly in the arena, rather than construct on stack and then copy to the arena.

Also add a corresponding `AstBuilder::vec_from_array` method, and use it in various places in codebase.
2024-11-18 02:35:46 +00:00
..
oxc chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_allocator feat(allocator): introduce Vec::from_array_in (#7331) 2024-11-18 02:35:46 +00:00
oxc_ast feat(allocator): introduce Vec::from_array_in (#7331) 2024-11-18 02:35:46 +00:00
oxc_ast_macros release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_cfg release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_codegen chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_data_structures feat(data_structures): add methods to SparseStack (#7305) 2024-11-16 05:36:36 +00:00
oxc_diagnostics chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_ecmascript release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_estree release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_index release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_isolated_declarations feat(allocator): introduce Vec::from_array_in (#7331) 2024-11-18 02:35:46 +00:00
oxc_language_server fix(language_server): revalidate files when oxlint config is changing (#7259) 2024-11-14 10:45:17 +08:00
oxc_linter feat(linter): implement unicorn/consistent-existence-index-check (#7262) 2024-11-16 20:07:52 +00:00
oxc_macros
oxc_mangler chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_minifier feat(allocator): introduce Vec::from_array_in (#7331) 2024-11-18 02:35:46 +00:00
oxc_module_lexer chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_parser chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_prettier chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_regular_expression release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_semantic fix(transformer/async-to-generator): arguments isn't correct after transformation (#7234) 2024-11-17 05:01:44 +00:00
oxc_sourcemap chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
oxc_span release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_syntax release(crates): v0.36.0 (#7227) 2024-11-10 00:31:14 +08:00
oxc_transformer feat(allocator): introduce Vec::from_array_in (#7331) 2024-11-18 02:35:46 +00:00
oxc_traverse feat(traverse): add methods for creating Expression::Identifiers (#7301) 2024-11-16 05:36:35 +00:00
oxc_wasm feat(transformer)!: change API to take a &TransformOptions instead of TransformOptions (#7213) 2024-11-09 06:01:13 +00:00