diff options
author | Mart G <martg_@hotmail.com> | 2021-05-14 21:29:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-14 23:32:10 +0200 |
commit | f70d0f03de9eec4ee790f7bc7671d0c399be5e94 (patch) | |
tree | c2e05c7e0a3bee09032b3d061bfd7ab7b7c943ce /Userland/Libraries | |
parent | 758085571fdfcd89a30fa1986050407da7c4ae83 (diff) | |
download | serenity-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