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

optimize memory allocation in receiver #141

Open
tonistiigi opened this issue Nov 10, 2022 · 0 comments
Open

optimize memory allocation in receiver #141

tonistiigi opened this issue Nov 10, 2022 · 0 comments

Comments

@tonistiigi
Copy link
Owner

https://github.com/tonistiigi/fsutil/pull/139/files#diff-d1445ba8bd61e8e9f66950832df5b1d76f222e7f1f38700a30b728c214da04ccR41 added map where all the directory paths+timestamps are written in. Because all the items are sorted, this full map is not needed only timestamps for the parent dirs of current path are needed. So instead of a full map, this can be achieved with a stack that adds item when moving to subdirectory and pops when the current directory has been processed.

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

No branches or pull requests

1 participant