https://pantsbuild.org/ logo
s

straight-waiter-86090

02/16/2017, 7:00 PM
I think part of the slowness in my case is I use
rglob(‘java/*.java’)
in most BUILD files. From what I can tell, rglob will traverse all directories, then match them against the pattern. If there are many other unrelated files (outside of
java/
) this is very slow. For example, if I run it in the root of my source tree, which has no
java/
directories at that level, it takes 1 minute 23 seconds and finds nothing.