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

Fix/progress bar memory #1178

Open
wants to merge 5 commits into
base: version/0.24.4
Choose a base branch
from
Open

Conversation

FulecoRafa
Copy link
Collaborator

Progress bar was consuming large amounts of memory due to it having one progress bar per file.

  • Make it optional to display per-file progress bars

Alongside this, walkdir notably consumes a lot of memory as well.

  • Add a bounded version of walkdir
  • Add pipeline bounded walkdir

Lastly, it is better to have a progress report of the sum of the file size instead of the file count, so we update BytesReporter to support these operations.

Notice this is not a PR to main

In some operations that may upload a large amount of files, such as
upload_dir, would create a progress bar for each, which may consume
large amounts of memory.
WalkDir loads all children for a directory, consuming large ammounts of
memory.
This function limits the number of files loaded during run in exchange
of lexical order.
This will solve large memory consumption during fs walk
Sync is another operation that was consuming a lot of memory.
For when we only need to track the entire amount of bytes needed in the
total operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants