diff options
author | Fabricio Voznika <fvoznika@google.com> | 2020-07-24 17:18:38 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-24 17:20:33 -0700 |
commit | bd97206fa13d18d870b4120e831b11630d6fa98f (patch) | |
tree | 9e6300284919a4aa7fa421ef6f6a2ee674acb390 /test/syscalls/linux/clock_getres.cc | |
parent | ea0342d470e7eabd9aa2968d4919c67784e4a358 (diff) |
Reduce walk and open cost in fsgofer
Implement WalkGetAttr() to reuse the stat that is already
needed for Walk(). In addition, cache file QID, so it
doesn't need to stat the file to compute it.
open(2) time improved by 10%:
Baseline: 6780 ns
Change: 6083 ns
Also fixed file type which was not being set in all places.
PiperOrigin-RevId: 323102560
Diffstat (limited to 'test/syscalls/linux/clock_getres.cc')
0 files changed, 0 insertions, 0 deletions