[Python-ideas] Support parsing stream with `re`
cs at cskk.id.au
Tue Oct 9 17:25:46 EDT 2018
On 10Oct2018 00:42, Stephen J. Turnbull <turnbull.stephen.fw at u.tsukuba.ac.jp> wrote:
>Chris Angelico writes:
> > On Tue, Oct 9, 2018 at 10:05 PM Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> > > Chris Angelico wrote:
> > > > In contrast, a mmap'd file is memory that you do indeed own.
> > >
> > > Although it's not really accurate to say that it's owned by
> > > a particular process. If two processes mmap the same file,
> > > the physical memory pages holding it appear in the address
> > > spaces of both processes.
>Subject to COW, I presume. Probably in units smaller than the whole
>file (per page?)
Yes, pages (whatever using the memory paging service works in).
But not COW. Changes to the memory affect the file contents and are
visible to the other process. It is mapped, not pseudocopied.
Cameron Simpson <cs at cskk.id.au>
More information about the Python-ideas