Commits

Rune Halvorsen committed 23a8920

Biased cjson in front of yajl. Seems slightly faster in most tests.

Comments (0)

Files changed (1)

anyjson/__init__.py

     methods, as well as the exception they throw. Exception can be either
     an exception class or a string.
 """
-_modules = [("yajl", "dumps", TypeError, "loads", ValueError),
-            ("cjson", "encode", "EncodeError", "decode", "DecodeError"),
+_modules = [("cjson", "encode", "EncodeError", "decode", "DecodeError"),
+            ("yajl", "dumps", TypeError, "loads", ValueError),
             ("jsonlib2", "write", "WriteError", "read", "ReadError"),
             ("jsonlib", "write", "WriteError", "read", "ReadError"),
             ("simplejson", "dumps", TypeError, "loads", ValueError),