Skip to content

perf: avoid redundant Abs and Stat on directory walks#87

Open
leno23 wants to merge 1 commit into
dolph:mainfrom
leno23:perf/direntry-abs-path-issue-13-15-v2
Open

perf: avoid redundant Abs and Stat on directory walks#87
leno23 wants to merge 1 commit into
dolph:mainfrom
leno23:perf/direntry-abs-path-issue-13-15-v2

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 30, 2026

Fixes #13 and #15

Made with Cursor

Use NewChildFile to join paths under an absolute parent without calling
filepath.Abs per entry. Use DirEntry.IsDir for type checks so directory
entries do not trigger an extra os.Stat.

Fixes dolph#13
Fixes dolph#15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redundant os.Stat call per directory entry duplicates information already in DirEntry

1 participant