Permalink
Browse files

Fix huge performance problem in JsonParser

  • Loading branch information...
1 parent 101496d commit 6809f094f47bd7c0a845ea2be3f64c744f1ccb30 @sirthias sirthias committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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(_ :_*))

0 comments on commit 6809f09

Please sign in to comment.