summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9/messages.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-04-23 16:10:05 -0700
committerShentubot <shentubot@google.com>2019-04-23 16:10:54 -0700
commit908edee04f92055a8c53a63d1b8d57ffe56aa682 (patch)
tree18d9e67a6d603cd332164056305d06a094e7843c /pkg/p9/messages.go
parentdf21460cfdf589299e98171407741e3c253debe4 (diff)
Replace os.File with fd.FD in fsgofer
os.NewFile() accounts for 38% of CPU time in localFile.Walk(). This change switchs to use fd.FD which is much cheaper to create. Now, fd.New() in localFile.Walk() accounts for only 4%. PiperOrigin-RevId: 244944983 Change-Id: Ic892df96cf2633e78ad379227a213cb93ee0ca46
Diffstat (limited to 'pkg/p9/messages.go')
0 files changed, 0 insertions, 0 deletions