Re: [libvirt] [PATCH 7/7] qemu: monitor: Avoid unnecessary copies of command string

2019-04-02 Thread Laine Stump
On 3/29/19 9:33 AM, Peter Krempa wrote: Use virJSONValueToBuffer so that we can append the command terminator string without copying of the string again. Also avoid a 'strlen' as we can query the buffer use size. Signed-off-by: Peter Krempa Reviewed-by: Laine Stump ---

[libvirt] [PATCH 7/7] qemu: monitor: Avoid unnecessary copies of command string

2019-03-29 Thread Peter Krempa
Use virJSONValueToBuffer so that we can append the command terminator string without copying of the string again. Also avoid a 'strlen' as we can query the buffer use size. Signed-off-by: Peter Krempa --- src/qemu/qemu_monitor_json.c | 13 - 1 file changed, 8 insertions(+), 5