-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

...
> To the extent that elementree is in python yes, but xmlrpc is more
> than a serialisation framework.
> 
>> Probably faster (citation needed) than xml.
> 
> Measurement needed :)

ancestry = b.repository.get_ancestry(b.last_revision())

 11.4ms TIMEIT "json = simplejson.dumps(ancestry)"
101.0ms TIMEIT "xml = xmlrpclib.dumps((ans,), allow_none=True)"
 16.7ms TIMEIT "val = simplejson.loads(json)"
340.0ms TIMEIT "val = xmlrpclib.loads(xml)"


Now this is a huge list of strings. And the JSON representation is about
200kB, the XML representation is about 300kB.

But it does say that simplejson is about 10x faster than xmlrpclib at
dumps, and 20x faster at loads.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3mWbwACgkQJdeBCYSNAAMHswCg0QQlZ+rjuQO9mBW6DHyyyDmf
8cEAn2SbKSHaaveJ6F9nwJZVanoOKlNO
=YN2q
-----END PGP SIGNATURE-----

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : launchpad-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to