perf: avoid branch in parser csi param action

pull/9645/head
Qwerasd 2025-11-17 21:34:56 -07:00
parent 3e8d94bb1c
commit 14771e5009
1 changed files with 1 additions and 3 deletions

View File

@ -349,9 +349,7 @@ inline fn doAction(self: *Parser, action: TransitionAction, c: u8) ?Action {
}
// A numeric value. Add it to our accumulator.
if (self.param_acc_idx > 0) {
self.param_acc *|= 10;
}
self.param_acc *|= 10;
self.param_acc +|= c - '0';
// Increment our accumulator index. If we overflow then