Skip to content

Commit e51be66

Browse files
alexander-akaitclaude
authored andcommitted
perf(css,html): keep the lexer and tree builder on plain constants
Reading TokenType, Quote and Namespace members on the hot paths cost CodSpeed's readToken benchmark 25% more instructions. The parsers read the TT_*, QUOTE_* and NS_* constants again and build the enums from them.
1 parent d82eb97 commit e51be66

3 files changed

Lines changed: 343 additions & 371 deletions

File tree

0 commit comments

Comments
 (0)