https://pantsbuild.org/ logo
#general
Title
# general
h

high-yak-85899

03/13/2023, 5:13 PM
There's a nice script for cache size maintenance in the docs for using pants in CI. I've noticed that this script can take many multiple minutes to run even though we call it on two directories. Is that what others have experienced or are we likely doing something wrong?
b

broad-processor-92400

03/13/2023, 7:22 PM
In my experience, the
named_caches
directory in particular can contain many many small files/directories, so manipulating it can be very slow. We’ve stopped caching it in CI entirely, because it wasn’t worth the time. Alternatively, one could be precise about which subdirectories of it one caches.