[Libguestfs] [PATCH libnbd] generator/Go.ml: Simplify copy_uint32_array
Eric Blake
eblake at redhat.com
Tue Feb 8 19:23:19 UTC 2022
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
More information about the Libguestfs
mailing list