[Python-Dev] file and bytecode-only (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 4 04:48:36 CET 2010
- Previous message: [Python-Dev] __file__ and bytecode-only
- Next message: [Python-Dev] __file__ and bytecode-only
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Antoine Pitrou wrote:
Actually, I find it neater to have a single cache directory. It makes for much less clutter, and simpler ignore rules.
Another possibility would be to have a single top-level cache directory with a subdirectory for each version:
bytecode.pycache//.pyc
I don't think this ought to increase the stat call count, since the interpreter will always be looking for a particular version of bytecode, so it can just stat for the appropriate subdirectory directly.
-- Greg
- Previous message: [Python-Dev] __file__ and bytecode-only
- Next message: [Python-Dev] __file__ and bytecode-only
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]