mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #901] Python: use a new output buffer code #1478
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?
Original Pull Request: https://github.com/google/brotli/pull/901
State: closed
Merged: No
Currently, the output buffer is a
std::vector<uint8_t>.When the buffer grows, resizing will cause unnecessary
memcpy().This PR uses a list of bytes object to represent output buffer, can avoid the extra overhead of resizing.
In addition, C++ code can be removed, it's a pure C extension.
Please review the 11 commits one by one.
May 2, 2021 update:
Benchmarks:
Benchmark code: