Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use filepath.WalkDir instead of filepath.Walk #1210

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

anderseknert
Copy link
Member

This has the benefit of not having to stat all files along the way.

Ideally, we'd be able to build the data bundle in the same function more efficiently too, but that's a more complex operation.

Copy link
Member

@charlieegan3 charlieegan3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This has the benefit of not having to stat all files along the way.

Ideally, we'd be able to build the data bundle in the same function
more efficiently too, but that's a more complex operation.

Signed-off-by: Anders Eknert <anders@styra.com>
@anderseknert anderseknert merged commit 63b90e1 into main Oct 16, 2024
4 checks passed
@anderseknert anderseknert deleted the tiny-perf-win branch October 16, 2024 14:39
charlieegan3 pushed a commit to charlieegan3/regal that referenced this pull request Jan 6, 2025
This has the benefit of not having to stat all files along the way.

Ideally, we'd be able to build the data bundle in the same function
more efficiently too, but that's a more complex operation.

Signed-off-by: Anders Eknert <anders@styra.com>
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.

2 participants