Quim Rovira [Sun, 14 Aug 2016 09:08:20 +0000 (11:08 +0200)]
Use a local temporary buffer for decompression instead of a global.
Allocating the temporary buffer on each call to decompress might be
slightly less efficient, but that would mostly impact streaming
decompression with very small blocks.
Not even sure this change is really worth doing.. it could use some
benchmarking to see if it really makes sense.
Quim Rovira [Sat, 13 Aug 2016 11:29:06 +0000 (13:29 +0200)]
Update use of deprecated brotli decoder APIs
This does not cover the use of BrotliDecompressedSize, and by looking at
the brotli code, it might even be a good idea to just use the streaming
interface right away.