Commit 232abea
committed
Unroll whitespace check in '--' line-comment dispatch
The leading-whitespace skip at the top of read_next_token() was
already unrolled into byte-equality checks for the perf reasons
documented in 916b512. Apply the same unroll to the third-byte
whitespace check that gates a '--' as a line-comment start, so the
hot dispatch chain doesn't fall back into strpos() on a 5-char mask
for this case. The bound check is folded into '?? null' on the
third-byte read, matching the rest of the lookahead style.1 parent d492808 commit 232abea
1 file changed
Lines changed: 8 additions & 2 deletions
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2507 | 2507 | | |
2508 | 2508 | | |
2509 | 2509 | | |
| 2510 | + | |
2510 | 2511 | | |
2511 | 2512 | | |
2512 | | - | |
2513 | | - | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
2514 | 2520 | | |
2515 | 2521 | | |
2516 | 2522 | | |
| |||
0 commit comments