Antoine Pitrou wrote:
> On Sat, 8 May 2021 02:58:40 +0000
> Neil Schemenauer [email protected] wrote:

> > It would be cool if we could mmap the pyc files and have the VM run
> > code without an unmarshal step.
> > What happens if another process mutates or truncates the file while the
> CPython VM is executing code from the mapped file?  Crash?

Why would this be any different than whatever happens now?  Just because it is 
easier for another process to get (exclusive) access to the file if there is a 
longer delay between loading the first part of the file and going back for the 
docstrings and lnotab?

-jJ
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/ONMS26WLPIT35H5VX4Z6STPYWSXXBQVJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to