On Fri, Jun 03, 2022 at 05:26:30PM -0500, Eric Blake wrote:
I didn't get to integrate this with my h.{aio_}pread_structured
copy
reductions, but I'm liking how this one turned out.
I think, but am still in the middle of testing, that with this series
applied first, I don't even need to worry about creating/applying a
PySlice object to a PyMemoryView. Instead, I can copy a Py_buffer,
tweak the underlying pointer and length to match the subset in use,
the use PyMemoryView_FromBuffer. The trickiest part will be getting
the reference counting correct.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization:
qemu.org |
libvirt.org