Commit Graph

5 Commits

Author SHA1 Message Date
Eugene Klyuchnikov 127aa48a96 Fix bug in decoder.
Minor cleanup.
2015-09-01 12:18:22 +02:00
Lode Vandevenne db71549ac5 update brotli decoder with latest improvements 2015-08-28 15:20:24 +02:00
lvandeve 45c38936b7 Enable little endian support also for visual studio 2015-08-10 14:41:42 +02:00
Lode Vandevenne 94cd7085f7 brotli decoder performance improvements 2015-08-10 13:35:23 +02:00
Zoltan Szabadka 83aa24dc86 Speed and memory usage improvements for the decoder.
* Change order of members of bit reader state structure.

* Remove unused includes for assert. Add BROTLI_DCHECK
  macros and use it instead of assert.

* Do not calculate nbits in common case of ReadSymbol.

* Introduce and use PREDICT_TRUE / PREDICT_FALSE macros.

* Allocate less memory in the brotli decoder if it knows
  the result size beforehand. Before this, the decoder
  would always allocate 16MB if the encoder annotated the
  window size as 22 bit (which is the default), even if the
  file is only a few KB uncompressed. Now, it'll only
  allocate a ringbuffer as large as needed for the result file.
  But only if it can know the filesize, it's not possible
  to know that if there are multiple metablocks or too large
  uncompressed metablock.
2015-05-07 16:53:43 +02:00