I ran a "locate emerge" and I could not find something like "emerge.pyc" or "emerge.pyo" python cache files. Enabling python cached files could speedup portage execution.
agaffney@kagome ~ $ find /usr/lib/portage/pym/ -name '*.py[co]' /usr/lib/portage/pym/portage.pyo /usr/lib/portage/pym/portage_mail.pyo /usr/lib/portage/pym/cvstree.pyo /usr/lib/portage/pym/xpak.pyo /usr/lib/portage/pym/getbinpkg.pyo /usr/lib/portage/pym/output.pyo /usr/lib/portage/pym/portage_util.pyo /usr/lib/portage/pym/portage_const.pyo /usr/lib/portage/pym/portage_exception.pyo /usr/lib/portage/pym/portage_dep.pyo /usr/lib/portage/pym/portage_versions.pyo /usr/lib/portage/pym/portage_data.pyo /usr/lib/portage/pym/portage_manifest.pyo /usr/lib/portage/pym/portage_checksum.pyo /usr/lib/portage/pym/portage_exec.pyo /usr/lib/portage/pym/portage_locks.pyo /usr/lib/portage/pym/portage_localization.pyo /usr/lib/portage/pym/xpak.pyc /usr/lib/portage/pym/portage_gpg.pyo /usr/lib/portage/pym/eclass_cache.pyo /usr/lib/portage/pym/portage_update.pyo /usr/lib/portage/pym/portage_selinux.pyo /usr/lib/portage/pym/emergehelp.pyo /usr/lib/portage/pym/cache/__init__.pyo /usr/lib/portage/pym/cache/cache_errors.pyo /usr/lib/portage/pym/cache/metadata.pyo /usr/lib/portage/pym/cache/flat_hash.pyo /usr/lib/portage/pym/cache/template.pyo /usr/lib/portage/pym/cache/mappings.pyo /usr/lib/portage/pym/cache/fs_template.pyo /usr/lib/portage/pym/cache/metadata_overlay.pyo /usr/lib/portage/pym/elog_modules/__init__.pyo /usr/lib/portage/pym/elog_modules/mod_save.pyo /usr/lib/portage/pym/elog_modules/mod_mail.pyo agaffney@kagome /usr/lib/portage/bin $ head -n 1 /usr/lib/portage/bin/emerge #!/usr/bin/python -O
Yes, but "emerge.py" script is not cached (no "emerge.pyc" or "emerge.pyo").
(In reply to comment #0) > Enabling python cached files could speedup portage execution. It only slightly speeds up the initial launch. After that, there is no difference. The time it takes to compile emerge is quite negligible in comparison to all the other things that emerge and the portage libraries do.
(In reply to comment #2) > Yes, but "emerge.py" script is not cached (no "emerge.pyc" or "emerge.pyo"). > What emerge.py script?