diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-08-12 23:26:40 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-08-12 23:45:43 +0200 |
commit | 3d6615b2764da759c5b9354c40cd1a32b84ee039 (patch) | |
tree | 379048c173cf170100f7d88099dd2758be76f124 /libtests/md5.cc | |
parent | 48331b4bdc5b63465604a1201a3b66ea8a793d51 (diff) | |
download | qpdf-3d6615b2764da759c5b9354c40cd1a32b84ee039.tar.zst |
Pl_Buffer: reduce memory growth (fixes #228)
Rather than keeping a list of buffers for every write, accumulate
bytes in a single buffer, doubling the size of the buffer when needed
to accommodate new data.
This is not the best possible implementation, but the change was
implemented in this way to avoid changing the shape of Pl_Buffer and
thus breaking backward compatibility.
Diffstat (limited to 'libtests/md5.cc')
0 files changed, 0 insertions, 0 deletions