diff options
| author | Gofastasf <gofastasf@gmail.com> | 2025-01-30 02:10:40 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-01-30 09:27:35 +0000 |
| commit | 9c8ab8458ec658aa3007c0e8c1695907c8d8c39f (patch) | |
| tree | f306aa1611615d6ce7811829a5a21cadf29678d0 /docs/linux/setup_linux-host_android-device_arm-kernel.md | |
| parent | c3366d7ae17410f97cb17b121921e77b367c0483 (diff) | |
all: replace Walk with WalkDir to reduce os.Lstat calls
filepath.Walk calls os.Lstat for every file or directory to retrieve os.FileInfo.
filepath.WalkDir avoids unnecessary system calls since it provides a fs.DirEntry,
which includes file type information without requiring a stat call.
This improves performance by reducing redundant system calls.
Diffstat (limited to 'docs/linux/setup_linux-host_android-device_arm-kernel.md')
0 files changed, 0 insertions, 0 deletions
