I’ve had the understanding that simplejson is much faster than the native json in Python, such as this thread:
What are the differences between json and simplejson Python modules?
However, I was just thrown for a loop when I read in App Engines documentation that with Python 2.7
Uses the native JSON library, which is much faster than simplejson.
http://code.google.com/appengine/docs/python/python27/newin27.html
So now I’m confused. Everywhere else it seems to say simplejson is better, but now App Engine with Python 2.7 says the native is faster. What gives?
Before the release of the Python 2.7 runtime, nearly every module included with App Engine, and literally every module you could include yourself were pure python. With the 2.7 release, the
jsonmodule includes speedups written in C, making it much faster than anysimplejsonyou can run on App Engine.The benefits to using
simplejsonon 2.7 you get normally (mainly having a version that’s newer than it was when the latest release of Python 2.7 was made) don’t apply, since you can’t compile the speedups in the latest version and deploy them to App Engine.