diff options
author | Adam Spragg <adam@spra.gg> | 2022-07-07 18:52:15 +0100 |
---|---|---|
committer | Adam Spragg <adam@spra.gg> | 2022-07-08 08:36:47 +0100 |
commit | 15f76771009d78fbe6f8f9715080436ad9d92a68 (patch) | |
tree | 639c0bff2c41dd803b1ca105ddd3a2eee4fb1cc1 /utils.c | |
parent | 2670293c68fe700a5320e3d37815091e3590d39a (diff) |
Check for directories with the mode stored in the mentryperf-2
Saves one call to lstat(2) per file.
On my system, this improves `time bin/metastore -d /usr >/dev/null` from:
real 0m2.183s
user 0m0.733s
sys 0m1.435s
to:
real 0m1.846s
user 0m0.663s
sys 0m1.134s
Average of 5 runs, on a warm cache, reducing runtime by roughly 15%.
Diffstat (limited to 'utils.c')
0 files changed, 0 insertions, 0 deletions