Open JeffBezanson opened 9 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.
I hereby apologize for the
readall
function. I think GZip should implementreadbytes
instead, and inheritreadall(::IO)
that just wraps the result ofreadbytes
in a string.