This might technically depend on whether you only care about Python-level copies. I think that for any of the range requests zarr makes, those only use a single allocation on the Rust side. But I'm not 100% sure that there's not an extra copy on the Rust side when you call bytes_async(). That calls the underlying bytes method of the object_store GetResult. And that could have copies under the hood.
Can memray see allocations made by compiled code?
Originally posted by @kylebarron in 2767ed5
Originally posted by @kylebarron in 2767ed5