[vte] parser: Speed up no-op strings
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] parser: Speed up no-op strings
- Date: Tue, 27 Mar 2018 17:45:45 +0000 (UTC)
commit 8306373fd374bc203e9ae515c67e31fc97146ca6
Author: Christian Persch <chpe src gnome org>
Date: Tue Mar 27 19:40:13 2018 +0200
parser: Speed up no-op strings
Perform no action while dropping DCS IGNORE, APC, PM, SOS.
src/parser.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/parser.cc b/src/parser.cc
index 9c54e13..4d19a8b 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -1589,7 +1589,7 @@ static int parser_feed_to_state(struct vte_parser *parser, uint32_t raw)
case 0x00 ... 0x1a: /* ASCII \ { ESC } */
case 0x1c ... 0x7f:
return parser_transition(parser, raw, STATE_NONE,
- ACTION_IGNORE);
+ ACTION_NONE);
case 0x1b: /* ESC */
return parser_transition(parser, raw, STATE_ESC,
ACTION_CLEAR);
@@ -1625,8 +1625,8 @@ static int parser_feed_to_state(struct vte_parser *parser, uint32_t raw)
switch (raw) {
case 0x00 ... 0x1a: /* ASCII \ { ESC } */
case 0x1c ... 0x7f:
- return parser_transition(parser, raw,
- STATE_NONE, ACTION_IGNORE);
+ return parser_transition(parser, raw, STATE_NONE,
+ ACTION_NONE);
case 0x1b: /* ESC */
return parser_transition(parser, raw, STATE_ESC,
ACTION_CLEAR);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]