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

Ben Pfaff blp at ovn.org
Wed Feb 28 21:09:21 UTC 2018


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