JuliaIO / GZip.jl

A Julia interface for gzip functions in zlib
https://juliaio.github.io/GZip.jl/dev
MIT License
39 stars 30 forks source link

should implement `readbytes` #28

Open JeffBezanson opened 9 years ago

JeffBezanson commented 9 years ago

I hereby apologize for the readall function. I think GZip should implement readbytes instead, and inherit readall(::IO) that just wraps the result of readbytes in a string.

quinnj commented 5 years ago

Yeah, it should really implement readbytes! or even better would be readavailable; as-is, the only standard IO function implemented is read(::GZipStream, ::Type{UInt8}), which means the majority of cases where a GZipStream is used generically falls back to byte-by-byte IO, which is probably terrible for performance.