v1.0.16
This release contains a refactoring of internal readers used for unmarshaling by the decoder.
- It speeds up varint decoding slightly by providing a methods
ReadUvarint()
andReadVarint()
directly in the reader. - When using a plain decoder with a
byte.Buffer
, it will now use thesliceReader
which is more efficient compared to the newly introducedstreamReader
. - When using any other
io.Reader
it now checks if it also implementsio.ByteReader
and constructs an appropriate fallback if necessary.