• Michael Hanselmann's avatar
    serializer: Remove JSON indentation and dict key sorting · a182a3ed
    Michael Hanselmann authored
    Serializing to JSON using “simplejson” is significantly slower when
    indentation and/or sorting of dictionary keys is used. In simplejson 1.x
    the difference isn't that big, but with simplejson 2.x the difference
    can be up to a factor of 7.5. The reason is that the latter no longer
    uses C functions when sorting or indentation is used.
    With this patch we revert everything to simplejson's defaults, which
    should provide us with the best performance available.
    Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
    Reviewed-by: default avatarIustin Pop <iustin@google.com>
hv_kvm.py 69.7 KB