summaryrefslogtreecommitdiffhomepage
path: root/runsc/fsgofer/BUILD
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-12-15 12:21:47 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-15 12:23:55 -0800
commit12ac31ed04dadf76d158cb07b8bc4f4a2b6d4895 (patch)
treece1589c20ac6b1e3aae6c360e6cdf2b8571c4d8c /runsc/fsgofer/BUILD
parent5843a5007c79268ba9913a8e0dd3ec998a741d11 (diff)
fsgofer optimizations
- Skip chown call in case owner change is not needed - Skip filepath.Clean() calls when joining paths - Pass unix.Stat_t by value to reduce runtime.duffcopy calls. This change allows for better inlining in localFile.walk(). Change Baseline Improvement BenchmarkWalkOne-6 2912 ns/op 3082 ns/op 5.5% BenchmarkCreate-6 15915 ns/op 19126 ns/op 16.8% BenchmarkCreateDiffOwner-6 18795 ns/op 19741 ns/op 4.8% PiperOrigin-RevId: 347667833
Diffstat (limited to 'runsc/fsgofer/BUILD')
-rw-r--r--runsc/fsgofer/BUILD3
1 files changed, 3 insertions, 0 deletions
diff --git a/runsc/fsgofer/BUILD b/runsc/fsgofer/BUILD
index 96c57a426..c56e1d4d0 100644
--- a/runsc/fsgofer/BUILD
+++ b/runsc/fsgofer/BUILD
@@ -29,9 +29,12 @@ go_test(
srcs = ["fsgofer_test.go"],
library = ":fsgofer",
deps = [
+ "//pkg/fd",
"//pkg/log",
"//pkg/p9",
"//pkg/test/testutil",
+ "//runsc/specutils",
+ "@com_github_syndtr_gocapability//capability:go_default_library",
"@org_golang_x_sys//unix:go_default_library",
],
)