◐ Shell
clean mode source ↗

Message 217412 - Python tracker

That could make sense, dunno.

Note that the bz2 module uses a harcoded 8K value.

Note that the buffer size should probably be passed to the open() call.

Also, the allocation is quite peculiar: it uses an exponential buffer
size, starting at a tiny value:

202             # Starts small, scales exponentially
203             self.min_readsize = 100

In short, I think the overall buffering should be rewritten :-)