We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.1.2
class RangedFileReader(object): def __init(...)
Obtaining the size of the file should be much quicker, and less CPU intensive. We should probably use something like this:
os.fstat(self.f) self.size = statobj.st_size
The current approach for obtaining the size of the file is terribly slow on large files : it uses CPU and disk I/O self.size = len(self.f.read())
self.size = len(self.f.read())
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
0.1.2
File / Feature
Expected behaviour
Obtaining the size of the file should be much quicker, and less CPU intensive. We should probably use something like this:
Actual behaviour
The current approach for obtaining the size of the file is terribly slow on large files : it uses CPU and disk I/O
self.size = len(self.f.read())
The text was updated successfully, but these errors were encountered: