diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-25 21:16:47 +0200 |
---|---|---|
committer | Sven Eden <sven.eden@prydeworx.com> | 2018-10-29 10:18:39 +0100 |
commit | 8894c11397f3b2a22cf163f1da9708bba30e4933 (patch) | |
tree | d3cb9284edb3a31f253f36e23e19aeff91bbc1ca /src/basic/selinux-util.c | |
parent | 0311ed6e95c029f52067d81f04bd84fb496db9dc (diff) |
fs-util: increase start buffer size in readlinkat_malloc()
I noticed while profiling journald that we invoke readlinkat() a ton on
open /proc/self/fd/<fd>, and that the returned paths are more often than
not longer than the 99 chars used before, when we look at archived
journal files. This means for these cases we generally need to execute
two rather than one syscalls.
Let's increase the buffer size a tiny bit, so that we reduce the number
of syscalls executed. This is really a low-hanging fruit of
optimization.
(cherry picked from commit 8e060ec225b74bbf22e5bdbacd604efcc73294c0)
Diffstat (limited to 'src/basic/selinux-util.c')
0 files changed, 0 insertions, 0 deletions