diff options
author | Mathias <mathias@spray.cc> | 2012-03-13 23:10:15 +0100 |
---|---|---|
committer | Mathias <mathias@spray.cc> | 2012-03-13 23:10:15 +0100 |
commit | 6809f094f47bd7c0a845ea2be3f64c744f1ccb30 (patch) | |
tree | 7aa7ca8c5796e5f0c564ca242e94db21d5d7e159 /src/main/scala/cc/spray/json | |
parent | 101496dcb5343d85878bbb6750aa90f92eb78c84 (diff) | |
download | spray-json-6809f094f47bd7c0a845ea2be3f64c744f1ccb30.tar.gz spray-json-6809f094f47bd7c0a845ea2be3f64c744f1ccb30.tar.bz2 spray-json-6809f094f47bd7c0a845ea2be3f64c744f1ccb30.zip |
Fix huge performance problem in JsonParser
Diffstat (limited to 'src/main/scala/cc/spray/json')
-rw-r--r-- | src/main/scala/cc/spray/json/JsonParser.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/cc/spray/json/JsonParser.scala b/src/main/scala/cc/spray/json/JsonParser.scala index 21b1d68..3886672 100644 --- a/src/main/scala/cc/spray/json/JsonParser.scala +++ b/src/main/scala/cc/spray/json/JsonParser.scala @@ -28,7 +28,7 @@ import java.lang.StringBuilder object JsonParser extends Parser { // the root rule - def Json = rule { WhiteSpace ~ Value ~ EOI } + lazy val Json = rule { WhiteSpace ~ Value ~ EOI } def JsonObject: Rule1[JsObject] = rule { "{ " ~ zeroOrMore(Pair, separator = ", ") ~ "} " ~~> (JsObject(_ :_*)) |