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 /ChangeLog | |
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 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2018-08-12 Jay Berkenbilt <ejb@ql.org> + + * Rewrite the internals of Pl_Buffer to be much more efficient in + use of memory at a very slight performance cost. The old + implementation could cause memory usage to go out of control for + files with large images compressed using the TIFF predictor. + Fixes #228. + 2018-08-05 Jay Berkenbilt <ejb@ql.org> * Bug fix: end of line characters were not properly handled inside |