ostree/src
Colin Walters 49a525f6a5 repo: Optimize bare-user content object reads a bit
`perf record ostree checkout ...` for a bare-user repo was telling
me we were spending a good 13% of our time in the depchain of `ot_lgexattrat()`.
The problem here is that traversing the `/proc` path turns out to be
somewhat expensive - there are LSM (SELinux) checks, etc.

For regular files, opening and just getting the xattr, then closing is still
quite cheap. For symlinks, we'll always need to open anyways.

This appears to shave about ~0.1 seconds off of a checkout of
`fedora-atomic/25/x86_64/docker-host` on my workstation.

Oh, and this was the last user of `ot_lgexattrat()` so we can kill it, which is
nice - the xattr code should really live in libglnx.

Closes: #796
Approved by: jlebon
2017-04-19 15:00:08 +00:00
..
boot boot: Ensure we remount /var writable before systemd does journal flush 2016-09-15 19:41:44 +00:00
libostree repo: Optimize bare-user content object reads a bit 2017-04-19 15:00:08 +00:00
libotutil repo: Optimize bare-user content object reads a bit 2017-04-19 15:00:08 +00:00
ostree cmdline: Start conversion to new code style 2017-04-19 14:41:00 +00:00
rofiles-fuse rofiles-fuse: Support write/read_buf() 2017-02-14 14:59:28 +00:00
switchroot ostree-prepare-root: Fix running with musl 2016-09-01 20:17:58 +00:00