diff options
author | Helmut Grohne <helmut@subdivi.de> | 2021-12-30 17:52:38 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2021-12-30 17:52:38 +0100 |
commit | 0b4882ecf657d70dd3236dcf176e083bf08dccdd (patch) | |
tree | c688aa1964a111c75f7035fa243df16030ba3ba1 /dedup/templates/source.html | |
parent | 35c22db308a91e82ed4a5f6a9c937c186d81d810 (diff) | |
download | debian-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 'dedup/templates/source.html')
0 files changed, 0 insertions, 0 deletions