Eliminate quotedString parser construct 41/92241/3
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 23 Aug 2020 07:10:02 +0000 (09:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 23 Aug 2020 07:23:20 +0000 (09:23 +0200)
commitad89b714e236a41e6e9a1e07fdbacaa864726b9b
tree15c18739556cfcc6d6c8da2aa0e0aeb8e4d22d21
parent18f15f5c3ffcb717fc3ae384f327c4702863368b
Eliminate quotedString parser construct

Double-quoted strings are very common and having a separate parser
construct is not giving us much for the memory footprint it incurs.

Inline the recursive definition into argument and adjust parsing
code to cope with the change. This results in memory usage improvement
of up to 3.7%.

JIRA: YANGTOOLS-1089
Change-Id: I9fce7d1ed9f8df4bcc602978c66fcfba7bbd8ed8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-antlr/src/main/antlr4/org/opendaylight/yangtools/yang/parser/antlr/YangStatementParser.g4
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/repo/ArgumentContextUtils.java