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

Add type to iterate directory #229

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Aug 9, 2023

This prevents reading from directory from allocating an unbounded slice at the cost of potentially having to read more than once.

It also prevents unccessary allocation in cases where an error occurs handling the file type.

@cpuguy83 cpuguy83 force-pushed the dir_iter branch 4 times, most recently from e0a78ae to 67e1035 Compare August 9, 2023 23:00
This prevents reading from directory from allocating an unbounded slice
at the cost of potentially having to read more than once.

It also prevents unccessary allocation in cases where an error occurs
handling the file type.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@AkihiroSuda
Copy link
Member

Let's make a new release after merging this

@dmcgowan dmcgowan changed the title Add type to itterate directory Add type to iterate directory Oct 18, 2023
@AkihiroSuda AkihiroSuda merged commit 1743d91 into containerd:main Oct 18, 2023
12 checks passed
@AkihiroSuda
Copy link
Member

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.

4 participants