python-rsrcfork/rsrcfork
dgelessus 5c3bc5d7e5 Remove custom stream types and read all resource data upfront again
The custom stream types were almost always slower than just reading the
entire data into memory, and there's no reason not to do that -
resources are small enough that memory usage and disk IO speed aren't a
concern (at least not for any machine that's modern enough to run
Python 3...).

Perhaps the only performance advantage was when reading a small amount
of data from the start of a compressed resource. In that case the
custom stream could incrementally decompress only the part of the data
that's actually needed, which was a bit faster than decompressing the
entire resource and then throwing away most of the data. But this
situation is rare enough that it's not worth handling in the rsrcfork
library. If this is a real performance issue for someone, they can
manually call the incremental decompression functions from
rsrcfork.compress where needed.
2020-11-01 19:28:25 +01:00
..
compress Remove custom stream types and read all resource data upfront again 2020-11-01 19:28:25 +01:00
__init__.py Bump version to 1.8.1.dev 2020-07-18 17:47:48 +02:00
__main__.py Remove no longer needed type: ignore comment from .__main__ 2020-11-01 19:13:11 +01:00
_io_utils.py Remove custom stream types and read all resource data upfront again 2020-11-01 19:28:25 +01:00
api.py Remove custom stream types and read all resource data upfront again 2020-11-01 19:28:25 +01:00
py.typed Add py.typed marker file for PEP 561 2020-07-06 23:57:25 +02:00