On Wednesday, September 14, 2011 2:20:26 PM UTC-4, Jonathan Lundell wrote: > > > How can the JSON times have increased (slightly) with the removal of all > the db.py code? This seems odd. > > > The JSON-vs-XML speed issue probably has to do with using the pure-Python > simplejson library from contrib. In class Service, we should try to import > the Python library json (2.6+), then simplejson (from the system, which > might have the C optimizations) and only then fall back on > contrib.simplejson. > > This would have to be done in gluon.serializers, too, and you want to make > sure that the jsonrpclib is using the right json library. >
But why would XMLRPC be faster than JSONRPC only when Auth is disabled? If enabling Auth adds 27ms to XMLRPC, why doesn't it add anything at all to JSONRPC? Anthony