mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #94] [MERGED] Speed and memory usage improvements for the decoder. #698
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/94
Author: @szabadka
Created: 5/7/2015
Status: ✅ Merged
Merged: 5/7/2015
Merged by: @szabadka
Base:
master← Head:master📝 Commits (1)
83aa24dSpeed and memory usage improvements for the decoder.📊 Changes
11 files changed (+117 additions, -35 deletions)
View changed files
📝
.gitignore(+1 -0)📝
dec/bit_reader.c(+2 -2)📝
dec/bit_reader.h(+9 -7)📝
dec/decode.c(+33 -18)📝
dec/huffman.c(+0 -1)📝
dec/huffman.h(+0 -1)➕
dec/port.h(+60 -0)📝
dec/safe_malloc.c(+2 -1)📝
dec/safe_malloc.h(+0 -2)📝
enc/port.h(+9 -3)📝
setup.py(+1 -0)📄 Description
macros and use it instead of assert.
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.