bazel-buildfarm
bazel-buildfarm copied to clipboard
call getFileStore once
When we use Buildfarm in our project, we use cpu profiler and find out that it takes too much time to call getFileStore when walking file tree. We don't need to call it recursively, so I use double checked locking to call it once.


Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
This needs something of a redesign - the static fields will not work for this. Instead, we would do better with an object that constrains to a single fileStore if the lookup is too costly (which is a justifiable premise).