[Python-Dev] PEP 3147: PYC Repository Directories
Nick Coghlan
ncoghlan at gmail.com
Thu Feb 4 22:54:18 CET 2010
Glenn Linderman wrote:
> Alt. C... source-file-dir/__pyr_version__, each Python version with
> different bytecode would have some sort of version string or magic
> number that identifies it, and would look only in that directory for its
> .pyc/.pyo files. I prefer C for 4 reasons: 1) easier to blow away one
> version; 2) easier to see what that version has compiled; 3) most people
> use only one or two versions, so directory proliferation is limited; 4)
> even when there are 30 versions of Python, the subdirectories would
> contain the same order-of-magnitude count of files as the source
> directory for performance issues, if the file system has a knee in the
> performance curve as some do.
I don't think this suggestion had come up before, but I like it. It also
reduces the amount of filename adjustment needed in the individual cache
directories.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-Dev
mailing list