Le 21/05/2019 à 13:42, Wes McKinney a écrit : > hi Antoine, > > On Tue, May 21, 2019 at 5:48 AM Antoine Pitrou <anto...@python.org> wrote: >> >> >> Hi Wes, >> >> How does copy-on-write play together with memory-mapped data? It seems >> that, depending on whether the memory map has several concurrent users >> (a condition which may be timing-dependent), we will either persist >> changes on disk or make them ephemeral in memory. That doesn't sound >> very user-friendly, IMHO. > > With memory-mapping, any Buffer is sliced from the parent MemoryMap > [1] so mutating the data on disk using this interface wouldn't be > possible with the way that I've framed it.
Hmm... I always forget that SliceBuffer returns a read-only view. Regards Antoine.