[ovirt-devel] [VDSM][JSON] jsonrpc coding/encoding performance on RHEL/Centos 6

Francesco Romani fromani at redhat.com
Tue Nov 11 10:24:43 UTC 2014



----- Original Message -----
> From: "Nir Soffer" <nsoffer at redhat.com>
> To: "Francesco Romani" <fromani at redhat.com>
> Cc: devel at ovirt.org
> Sent: Monday, November 10, 2014 1:21:53 PM
> Subject: Re: [ovirt-devel] [VDSM][JSON] jsonrpc coding/encoding performance on	RHEL/Centos 6
> 
> We have vdsm/lib/compat.py for this stuff.
> 
> Then everyone needing json will do "from vdsm.compat import json"

Do you think is better to have an hard dependency on 'simplejson'
or a soft one like I showed above hidden on compat.py?

I think we agree that 'explicit is better than implicit' here, so... (see below).

> Nice catch - using pure python encoder/decoder is indeed much slower, strange
> that Python 2.6 does not include the c extension.
> 
> I think we would like to use simplejson on all platforms, to make the build
> and support simpler.

...agreed, and posted http://gerrit.ovirt.org/#/c/35024/

Bests,

-- 
Francesco Romani
RedHat Engineering Virtualization R & D
Phone: 8261328
IRC: fromani



More information about the Devel mailing list