summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcauth.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-06-01 16:57:07 +0200
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-06-09 18:15:36 +0200
commitd21832e212d2613c0a0f3e5f09967cb3402c8a53 (patch)
tree7f7264ea38209af59be9d51e80aa67b53f0eec68 /net/sunrpc/svcauth.c
parentkbuild: simplify silent build (-s) detection (diff)
downloadlinux-d21832e212d2613c0a0f3e5f09967cb3402c8a53.tar.xz
linux-d21832e212d2613c0a0f3e5f09967cb3402c8a53.zip
kbuild: speed up checksyscalls.sh
checksyscalls.sh is run at every "make" run while building the kernel, even if no files have changed. I looked at where we spend time in a trivial empty rebuild and found checksyscalls.sh to be a source of noticeable overhead, as it spawns a lot of child processes just to call 'cat' copying from stdin to stdout, once for each of the over 400 x86 syscalls. Using a shell-builtin (echo) instead of the external command gives us a 13x speedup: Before After real 0m1.018s real 0m0.077s user 0m0.068s user 0m0.048s sys 0m0.156s sys 0m0.024s The time it took to rebuild a single file on my machine dropped from 5.5 seconds to 4.5 seconds. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'net/sunrpc/svcauth.c')
0 files changed, 0 insertions, 0 deletions