I don’t understand zero copy

57 points treedmt

Having read all the basic text Books on rust, I’m familiar with basics of memory, traits, ownership, borrowing, references, and types. and I’ve programmed a bit in rust. I still don’t feel like I have an intuitive grasp on what zero copy does( at the level of stack/heap memory, and in relation to types like arrays and vecs (which are not supported by ZC I think?)).

I’m looking for long form content (ideally book chapters/ long form articles) to really grasp this specific content in a way that I can wrestle with complex codebases using this functionality. Any recommendations appreciated!