From c54c02a2a51ec47fb6ff679d7c1a83f01ac4fa88 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Thu, 20 Mar 2025 18:15:48 +0530 Subject: [PATCH] perf(lexer): pad `Token` to 16 bytes --- crates/oxc_parser/src/lexer/token.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/oxc_parser/src/lexer/token.rs b/crates/oxc_parser/src/lexer/token.rs index 21a0bd6879e46..2774f96e85cc4 100644 --- a/crates/oxc_parser/src/lexer/token.rs +++ b/crates/oxc_parser/src/lexer/token.rs @@ -39,6 +39,7 @@ pub struct Token { // Padding to fill to 16 bytes. // This makes copying a `Token` 1 x xmmword load & store, rather than 1 x dword + 1 x qword // and `Token::default()` is 1 x xmmword store, rather than 1 x dword + 1 x qword. + _padding: u8, _padding2: u16, }