
May 9, 2021
2:16 a.m.
Antoine Pitrou wrote:
On Sat, 8 May 2021 02:58:40 +0000 Neil Schemenauer nas-python@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? 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