Skip to content

Commit e353c0a

Browse files
authored
Merge c841f00 into 527c391
2 parents 527c391 + c841f00 commit e353c0a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/old-monkeys-dance.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
swc_core: patch
3+
swc_ecma_parser: patch
4+
---
5+
6+
perf(es/parser): inline `skip_space`

crates/swc_ecma_parser/src/lexer/whitespace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl<'a> Lexer<'a> {
146146
/// Skip comments or whitespaces.
147147
///
148148
/// See https://tc39.github.io/ecma262/#sec-white-space
149-
#[inline(never)]
149+
#[inline]
150150
pub fn skip_space(&mut self) {
151151
loop {
152152
let byte = match self.input.as_str().as_bytes().first() {

0 commit comments

Comments
 (0)