On Sun, 09 May 2021 02:16:02 -0000
"Jim J. Jewett" <jimjjew...@gmail.com> wrote:
> Antoine Pitrou wrote:
> > On Sat, 8 May 2021 02:58:40 +0000
> > Neil Schemenauer nas-pyt...@arctrix.com 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?

What happens now is that the pyc file is transferred at once to memory
using regular IO.  So the chance is really slim that you read invalid
data due to concurrent mutation.

Regards

Antoine.


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

Reply via email to