[ovs-dev] [PATCH v2] python: avoid useless JSON conversion to enhance performance

Daniel Alvarez dalvarez at redhat.com
Wed Feb 28 22:46:31 UTC 2018


Thanks!
Would it be also possible to get it in in 2.9 branch as well please?

> On 28 Feb 2018, at 22:09, Ben Pfaff <blp at ovn.org> wrote:
> 
>> On Wed, Feb 28, 2018 at 10:11:09AM +0100, Daniel Alvarez wrote:
>> This patch removes a useless conversion to/from JSON in the
>> processing of any 'modify' operations inside the process_update2
>> method in Python IDL implementation.
>> 
>> Previous code will make resources creation take longer as the number
>> of elements in the row grows because of that JSON conversion. This
>> patch eliminates it and now the time remains consant regardless
>> of the database contents improving performance and scaling.
>> 
>> Reported-by: Daniel Alvarez <dalvarez at redhat.com>
>> Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2018-February/046263.html
>> Signed-off-by: Daniel Alvarez <dalvarez at redhat.com>
>> Acked-by: Terry Wilson <twilson at redhat.com>
>> Acked-by: Han Zhou <hzhou8 at ebay.com>
> 
> Thanks!  I applied this to master.


More information about the dev mailing list