[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files
STINNER Victor
report at bugs.python.org
Mon May 11 11:29:17 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
Currently, it's possible to implement this optimization using the Unix command "hardlink". Example:
hardlink -c -v /usr/lib64/python3.8/__pycache__/*.pyc
On my Fedora 32, this command says:
Directories: 1
Objects: 520
Regular files: 519
Comparisons: 133
Linked: 133
Saved: 2220032
For example, string.cpython-38.pyc and string.cpython-38.opt-1.pyc become hard links.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40495>
_______________________________________
More information about the Python-bugs-list
mailing list