A zero-copy transfer of data across a boundary hands the receiver a reference to the sender’s memory (a pointer and a layout) instead of a copy, so that its cost does not depend on the size of the data; it requires the two sides to agree on the layout and on who may write and free the memory, and for how long.
bench_natext.py.bench_natext.py.