aboutsummaryrefslogtreecommitdiff
path: root/python/_brotli.c
AgeCommit message (Collapse)AuthorFilesLines
2022-12-29Python: use a new output buffer code (#902)Ma Lin1-0/+985
Currently, the output buffer is a std::vector<uint8_t>. When the buffer grows, resizing will cause unnecessary memcpy(). This change 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.