[ovs-git] [openvswitch/ovs] 9d52a3: python: avoid useless JSON conversion to enhance p...

GitHub noreply at github.com
Wed Jun 13 15:19:59 UTC 2018


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: 9d52a31ca683306e93f165ed16b622b509f57a8f
      https://github.com/openvswitch/ovs/commit/9d52a31ca683306e93f165ed16b622b509f57a8f
  Author: Daniel Alvarez <dalvarez at redhat.com>
  Date:   2018-06-13 (Wed, 13 Jun 2018)

  Changed paths:
    M python/ovs/db/idl.py

  Log Message:
  -----------
  python: avoid useless JSON conversion to enhance performance

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>
Tested-By: Terry Wilson <twilson at redhat.com>
Acked-by: Han Zhou <hzhou8 at ebay.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list