diff options
| author | Jakob Unterwurzacher | 2020-10-18 00:25:42 +0200 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2020-10-18 00:25:42 +0200 | 
| commit | c943ed32aaf94a4e60d96c7a513180d29b15a40a (patch) | |
| tree | e64fc1672ccb57abb71327b38640eca79a3adaf8 /internal/configfile/config_test | |
| parent | 95ea7383f9aeef83e6ce7a06d49d0f24857ef30a (diff) | |
syscallcompat: add getxattr fastpaths
The allocations from Lgetxattr were #1 in the tar extract
allocation profile (caused by security.capability lookups).
No more!
$ benchstat old.txt new.txt
name         old time/op  new time/op  delta
Lgetxattr-4  15.2µs ± 0%   1.8µs ± 0%   ~     (p=1.000 n=1+1)
$ ./benchmark.bash
Testing gocryptfs at /tmp/benchmark.bash.H8p: gocryptfs v2.0-beta1-4-g95ea738-dirty; go-fuse v2.0.4-0.20200908172753-0b6cbc515082 => github.com/rfjakob/go-fuse/v2 v2.0.4-0.20201015204057-88b12c99f8af; 2020-10-18 go1.15.3 linux/amd64
/tmp/benchmark.bash.H8p.mnt is a mountpoint
WRITE: 262144000 bytes (262 MB, 250 MiB) copied, 0,520109 s, 504 MB/s
READ:  262144000 bytes (262 MB, 250 MiB) copied, 0,255672 s, 1,0 GB/s
UNTAR: 30,238
MD5:   12,721
LS:    10,038
RM:    16,536
Diffstat (limited to 'internal/configfile/config_test')
0 files changed, 0 insertions, 0 deletions
