Skip to content

Conversation

@CodeInDreams
Copy link

Issue number

No related issue.

Expected behaviour

Use self.f.size property as possible.

Actual behaviour

Always read full file for size, which has significant performance impact on remote file system.

Description of fix

Prefer self.f.size and use len(self.f.read()) as fallback.

Other info

Tested on CephFS.

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.

1 participant