<#22246 performance issue in pants.backend.docker....
# github-notifications
c
#22246 performance issue in pants.backend.docker.utils.suggest_renames Issue created by vito-laurenza-zocdoc Describe the bug While building a docker container image which requires a large directory of many files (283488 files and 32382 directories) in the docker context, we noticed a BIG slow down in the duration of
package
goal. In our case, the
package
goal was taking 20-40 minutes to complete. Upon debugging, we discovered the source of this slowdown was due to the
pants.backend.docker.utils.suggest_renames
method. Using local pants source, we commented out the offending call in the docker build context creation, and the
package
goal completed quickly. Pants version 2.27.0.dev3 OS Found this on MacOS, but probably exists on Linux too. Additional info N/A pantsbuild/pants