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: skip stat call when progress bar is disabled #793

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ItielOlenick
Copy link

This PR fixes unnecessary headObject calls in the cp command when the progress bar is disabled. It ensures Client.stat (headObject when copying remote->local) is only called when the progress bar is explicitly enabled, reducing latency and costs for bulk operations.

Changes:

Added a conditional check to skip Client.stat unless the progress bar is active.

Only requests object size when necessary, improving performance and cost efficiency for cp operations.

Closes #792.

@ItielOlenick ItielOlenick requested a review from a team as a code owner February 12, 2025 08:47
@ItielOlenick ItielOlenick requested review from igungor and seruman and removed request for a team February 12, 2025 08:47
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.

[Bug] Unnecessary headObject calls on cp command when progress bar is disabled
1 participant