<#11339 Execution of user .py files in any Process...
# github-notifications
q
#11339 Execution of user .py files in any Process requires a fresh .pyc compile Issue created by jsirois Right now we do not have a rule that implements a
.pyc
compile step and so we suffer recompilation of
.pyc
files on every run of a given
.py
source code file. It may make sense to implement compile rules that, given the target interpreter, compiles a file or set of files and leaves an output in the cas that can be used to gather up the needed
.pyc
files for composition into downstream process input digests. As always, the hard thing here to get right will likely be the performance tradoff of doing the simplest thing - compiling each source file on its own - to get maximum cache hit rates vs the performant thing which is likely compiling files in batch. pantsbuild/pants