You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
157257: *: replace os.FileInfo with os.DirEntry where possible r=stevendanna a=shubhamdhama
Previously, in a few places, we converted os.DirEntry to os.FileInfo by
calling entry.Info(), which triggers a stat syscall for each entry.
Most callers only needed the entry name, which is directly available from
os.DirEntry via Name(). This patch switches to os.DirEntry throughout the
codebase, avoiding unnecessary stat syscalls. In the few places where file
size or mode is needed, we now call Info() only when required.
Epic: none
Release note: None
Fixes: none
Co-authored-by: Shubham Dhama <[email protected]>
0 commit comments