[PR #132] [MERGED] Brotli decoder optimizations. #742

Open
opened 2026-01-29 20:50:39 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/132
Author: @szabadka
Created: 8/10/2015
Status: Merged
Merged: 8/10/2015
Merged by: @szabadka

Base: masterHead: master


📝 Commits (1)

  • 4b2fd00 Use a single lookup table for insert/copy offsets and extra bits.

📊 Changes

9 files changed (+723 additions, -141 deletions)

View changed files

📝 dec/Makefile (+1 -1)
📝 dec/decode.c (+17 -19)
📝 dec/huffman.c (+0 -1)
📝 dec/prefix.h (+705 -24)
dec/safe_malloc.c (+0 -46)
dec/safe_malloc.h (+0 -43)
📝 dec/state.c (+0 -3)
📝 dec/state.h (+0 -2)
📝 setup.py (+0 -2)

📄 Description

Use a single lookup table for insert/copy offsets and extra bits.

Remove safe_malloc.c since all the bounds checking is done inside
decode.c now.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/google/brotli/pull/132 **Author:** [@szabadka](https://github.com/szabadka) **Created:** 8/10/2015 **Status:** ✅ Merged **Merged:** 8/10/2015 **Merged by:** [@szabadka](https://github.com/szabadka) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`4b2fd00`](https://github.com/google/brotli/commit/4b2fd00e2472e9a07de6e7cfe3c8353783fbe6bc) Use a single lookup table for insert/copy offsets and extra bits. ### 📊 Changes **9 files changed** (+723 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `dec/Makefile` (+1 -1) 📝 `dec/decode.c` (+17 -19) 📝 `dec/huffman.c` (+0 -1) 📝 `dec/prefix.h` (+705 -24) ➖ `dec/safe_malloc.c` (+0 -46) ➖ `dec/safe_malloc.h` (+0 -43) 📝 `dec/state.c` (+0 -3) 📝 `dec/state.h` (+0 -2) 📝 `setup.py` (+0 -2) </details> ### 📄 Description Use a single lookup table for insert/copy offsets and extra bits. Remove safe_malloc.c since all the bounds checking is done inside decode.c now. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 20:50:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#742