-
Notifications
You must be signed in to change notification settings - Fork 21
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
copyfile: remove callback #255
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #255 +/- ##
==========================================
+ Coverage 63.71% 64.16% +0.44%
==========================================
Files 27 27
Lines 2067 2048 -19
Branches 325 319 -6
==========================================
- Hits 1317 1314 -3
+ Misses 690 675 -15
+ Partials 60 59 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completely removing feels like a bit too much. We should probably have a bytes-based (+number of objects) progress bar for all files, but that will still need some logic.
Let's fix this properly if someone complains. :-)
I don't think we can do it this way in this case, this is pretty important. We need some progress indication.
That's not really a feature, it is just missing and needs to be added one way or another. |
Either you need to support callback or not. Unfortunately there is no middleground. |
I'm not sure I understand why it is an unresolvable problem though. |
Looking through the responsibility of an API, if someone passes a (Maybe there's a way to skip if we pass |
I agree and it probably just shouldn't create a callback on its own at all, but rather use the one provided by the user from a layer above. |
But you'd still be calling |
@skshetry Not if you pass a None/Noop as a callback (in case of Noop I mean somehow in a way that will avoid the overhead). The most expensive part IIRC was |
Can be closed, went with #256. |
Let's remove the callback in all conditions.
The callbacks are part of fsspec, and they don't support callbacks in localfs either.
I plan on to remove
tqdm
andTqdmCallback
fromdvc-objects
, which this was blocking.Let's fix this properly if someone complains. :-)