summaryrefslogtreecommitdiffstats
path: root/package.xml
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 /package.xml
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 'package.xml')
-rw-r--r--package.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/package.xml b/package.xml
index 0e6918d..e5d7a8c 100644
--- a/package.xml
+++ b/package.xml
@@ -8,6 +8,7 @@
<prereq>PetitParser</prereq>
<prereq>Digest</prereq>
+ <filein>grammar/SIPQuotedStringParser.st</filein>
<filein>grammar/SIPGrammar.st</filein>
<filein>callagent/Base64MimeConverter.st</filein>
@@ -63,6 +64,7 @@
<test>
<prereq>PetitParserTests</prereq>
+ <sunit>Osmo.SIPQuotedStringParserTest</sunit>
<sunit>Osmo.SIPGrammarTest</sunit>
<sunit>Osmo.SIPParserTest</sunit>
<sunit>Osmo.SIPRequestTest</sunit>
@@ -73,6 +75,7 @@
<sunit>Osmo.SIPInviteTest</sunit>
<sunit>Osmo.SIPBase64Test</sunit>
<filein>grammar/SIPGrammarTest.st</filein>
+ <filein>grammar/SIPQuotedStringParserTest.st</filein>
<filein>callagent/tests/SIPParserTest.st</filein>
<filein>callagent/tests/Tests.st</filein>
<filein>callagent/tests/SIPCallAgentTest.st</filein>