On Sun, Feb 06, 2022 at 07:45:20PM +0200, Nir Soffer wrote:
Create a slice backed up by the entries pointer, and copy the data
with
builtin copy(). This can be 3x times faster but I did not measure it.
Eric posted a similar patch[1] last year, but the patch seems to be
stuck with unrelated incomplete work.
[1]
https://listman.redhat.com/archives/libguestfs/2021-December/msg00065.html
Your version looks slightly nicer than mine. ACK.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization:
qemu.org |
libvirt.org