I think part of the slowness in my case is I use `...
# general
s
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.