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

fs: copyfile: don't show progress for files < 1G #229

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Nov 30, 2023

There is no reason to create a progress bar overhead for anything that takes < 2sec to copy on a modern machine.

Related iterative/dvc#9914

There is no reason to create a progress bar overhead for anything that
takes < 2sec to copy on a modern machine.

Related iterative/dvc#9914
@codecov-commenter
Copy link

codecov-commenter commented Nov 30, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (231e527) 65.10% compared to head (f16d0fa) 64.40%.

Files Patch % Lines
src/dvc_objects/fs/utils.py 16.66% 9 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #229      +/-   ##
==========================================
- Coverage   65.10%   64.40%   -0.70%     
==========================================
  Files          26       26              
  Lines        2000     2003       +3     
  Branches      316      317       +1     
==========================================
- Hits         1302     1290      -12     
- Misses        639      651      +12     
- Partials       59       62       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@efiop efiop marked this pull request as ready for review November 30, 2023 00:10
@efiop
Copy link
Contributor Author

efiop commented Nov 30, 2023

Let's try this out, this is not making anything worse really and we can tweak further later on.

@efiop efiop merged commit 4a68565 into iterative:main Nov 30, 2023
@efiop efiop mentioned this pull request Nov 30, 2023
5 tasks
efiop added a commit to efiop/dvc-objects that referenced this pull request Dec 1, 2023
This again wastes a lot of time, as `set_size` might trigger
a pbar refresh.

Related iterative#229
Related iterative/dvc#9914
efiop added a commit that referenced this pull request Dec 1, 2023
This again wastes a lot of time, as `set_size` might trigger
a pbar refresh.

Related #229
Related iterative/dvc#9914
@efiop efiop self-assigned this Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants