summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorMart G <martg_@hotmail.com>2021-05-14 21:29:21 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-14 23:32:10 +0200
commitf70d0f03de9eec4ee790f7bc7671d0c399be5e94 (patch)
treec2e05c7e0a3bee09032b3d061bfd7ab7b7c943ce /Userland/Libraries
parent758085571fdfcd89a30fa1986050407da7c4ae83 (diff)
downloadserenity-f70d0f03de9eec4ee790f7bc7671d0c399be5e94.zip
SpaceAnalyzer: Use fstatat instead of lstat
By using fstatat during file system analyzation instead of lstat, we reduce the amount of work the kernel has to do for each stat call. During profiling it came up that the kernel was spending a lot of time resolving paths. Because each call to stat passed an absolute path the kernel had to do the same work over and over again. When using relative paths the kernel only has to resolve the relative part as it can reuse the already resolved path of the base directory.
Diffstat (limited to 'Userland/Libraries')
0 files changed, 0 insertions, 0 deletions