diff options
author | Jakob Unterwurzacher | 2016-10-25 23:57:30 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-10-28 21:17:53 +0200 |
commit | a08d55f42d5b11e265a8617bee16babceebfd026 (patch) | |
tree | 7dd8b2717e871183b0067ad1f565419f57d34ea9 /sendusr1.go | |
parent | 9b7135224bc3596ee3bceeca83cca3a687b0e9c7 (diff) |
fusefronted: optimize NFS streaming writes by saving one Stat()
Stat() calls are expensive on NFS as they need a full network
round-trip. We detect when a write immediately follows the
last one and skip the Stat in this case because the write
cannot create a file hole.
On my (slow) NAS, this takes the write speed from 24MB/s to
41MB/s.
Diffstat (limited to 'sendusr1.go')
0 files changed, 0 insertions, 0 deletions