Following on from bug 695183... There are still several stream types whose next_() function treats the "hint" as a maximum. If these are in a chain with the Flate decoder, which asks how many bytes are available with a "hint" of 1, each call into zlib is again constrained to work one byte at a time. (It looks like the DCT decoder can also lead to the same behaviour.) Specifically I’ve seen the issue with PDF stream data encoded with Flate then encrypted with AES, but generally it could arise with any of the affected stream types.
I believe this is fixed now. If not, can you please reopen with a file attached that shows the problem? Thanks.