Closed th3w1zard1 closed 5 months ago
This whole PR is a stupid idea based on naive logic. Python already has a io.BufferedReader
object, simply doing a isinstance(stream, io.RawIOBase)
and creating a new io.BufferedReader
inside from_stream
does much better than this PR.
Reduce 1-byte read calls that are potentially slowing down all IO operations on large files.