faster print action
This commit is contained in:
@@ -460,8 +460,11 @@ export class EscapeSequenceParser implements IEscapeSequenceParser {
|
|||||||
code = data.charCodeAt(i);
|
code = data.charCodeAt(i);
|
||||||
|
|
||||||
// shortcut for most chars (print action)
|
// shortcut for most chars (print action)
|
||||||
if (currentState === ParserState.GROUND && (code > 0x1f && code < 0x80)) {
|
if (currentState === ParserState.GROUND && code > 0x1f && code < 0x80) {
|
||||||
print = (~print) ? print : i;
|
print = (~print) ? print : i;
|
||||||
|
do code = data.charCodeAt(++i);
|
||||||
|
while (i < l && code > 0x1f && code < 0x80);
|
||||||
|
i--;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user