summaryrefslogtreecommitdiffstats
path: root/grammar/SIPGrammar.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-09-05 18:09:30 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-09-05 18:56:00 +0200
commit6c57c968dd467fa5d5ac91a2651e71f46be3fd04 (patch)
tree796c716037a156ce8ce57d41ad5323a2ad2ddc09 /grammar/SIPGrammar.st
parentbd38b0d0afde5459048753847dfbb2d79b1f5b1b (diff)
grammar: Speed-up quoted string parsing
On the sysmoBTS (ARM7TDMI) the parsing of a simple response with quoted string takes up to 200ms. Parsing the single digest line takes 40ms itself. Create a custom parser to speed things up to avoid the backtracking between three optional parsers that are combined in a choice.
Diffstat (limited to 'grammar/SIPGrammar.st')
-rw-r--r--grammar/SIPGrammar.st2
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar/SIPGrammar.st b/grammar/SIPGrammar.st
index 570ca85..a570b60 100644
--- a/grammar/SIPGrammar.st
+++ b/grammar/SIPGrammar.st
@@ -346,7 +346,7 @@ PP.PPCompositeParser subclass: SIPGrammar [
quoted_string [
<category: 'generic'>
- ^SWS, DQUOTE, (self qdtext / self quoted_pair) star flatten, DQUOTE
+ ^SIPQuotedStringParser new
]
qdtext [