aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2025-06-10 13:37:09 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2025-06-12 13:40:16 -0400
commit837b87c4c5ba9ac7a255133c6642b8d578272a70 (patch)
treeb971cba7cc5b41510056316bdda8e2f57702b2bd /scripts/qapi/source.py
parent751b0e79f1e0e7f88fad2fe2f22595ad03d78859 (diff)
downloadqemu-837b87c4c5ba9ac7a255133c6642b8d578272a70.zip
qemu-837b87c4c5ba9ac7a255133c6642b8d578272a70.tar.gz
qemu-837b87c4c5ba9ac7a255133c6642b8d578272a70.tar.bz2
net/stream: skip automatic zero-init of large array
The 'net_stream_send' method has a 68k byte array used for copying data between guest and host. Skip the automatic zero-init of this array to eliminate the performance overhead in the I/O hot path. The 'buf1' array will be fully initialized when reading data off the network socket. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Message-id: 20250610123709.835102-32-berrange@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions