oxc/crates
overlookmotel 6ca01b9c35 perf(ast): reduce size of Comment (#6921)
Reduce `Comment` from 20 bytes to 16. Because `Comment` has `#[ast]` attr, it's `#[repr(C)]` which means the fields don't get re-ordered by the compiler, so it contains excess padding. Moving `attached_to: u32` field removes the padding.

I am in favour of using `oxc_ast_tools` to re-order fields the same way the compiler does, which will solve this problem for all AST types. But may as well fix this one in meantime. Unlike most AST types, field order doesn't matter for `Comment` - it is not visited, so the field order has no semantic meaning.
2024-10-26 12:40:08 +00:00
..
oxc release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_allocator release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_ast perf(ast): reduce size of Comment (#6921) 2024-10-26 12:40:08 +00:00
oxc_ast_macros release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_cfg release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_codegen release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_data_structures release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_diagnostics release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_ecmascript release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_estree release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_index release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_isolated_declarations release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_language_server fix(oxc_language_server): correct diagnostic link (#6765) 2024-10-22 06:23:54 -04:00
oxc_linter release(oxlint): v0.10.3 (#6911) 2024-10-26 17:13:06 +08:00
oxc_macros refactor(linter): add run_on_jest_node to run rules on only jest nodes (#6721) 2024-10-21 02:13:58 +00:00
oxc_mangler release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_minifier refactor(minifier): remove Tri, use Option<bool> instead (#6912) 2024-10-26 04:28:34 +00:00
oxc_module_lexer release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_parser release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_prettier refactor(rust): remove the annoying clippy::wildcard_imports (#6860) 2024-10-24 13:57:19 +00:00
oxc_regular_expression feat(ast): remove explicit untagged marker on enums (#6915) 2024-10-26 08:21:40 +00:00
oxc_semantic release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_sourcemap release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_span release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_syntax release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_transformer release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_traverse release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_wasm fix(types): move @oxc-project/types to dependencies (#6909) 2024-10-26 10:26:54 +08:00