summaryrefslogtreecommitdiff
path: root/importpkg.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2021-12-30 17:52:38 +0100
committerHelmut Grohne <helmut@subdivi.de>2021-12-30 17:52:38 +0100
commit0b4882ecf657d70dd3236dcf176e083bf08dccdd (patch)
treec688aa1964a111c75f7035fa243df16030ba3ba1 /importpkg.py
parent35c22db308a91e82ed4a5f6a9c937c186d81d810 (diff)
downloaddebian-dedup-0b4882ecf657d70dd3236dcf176e083bf08dccdd.tar.gz
DecompressedStream: improve performance
When the decompression ratio is huge, we may be faced with a large (multiple megabytes) bytes object. Slicing that object incurs a copy becomes O(n^2) while appending and trimming a bytearray is much faster.
Diffstat (limited to 'importpkg.py')
0 files changed, 0 insertions, 0 deletions