From 3d6615b2764da759c5b9354c40cd1a32b84ee039 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 12 Aug 2018 17:26:40 -0400 Subject: 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. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 0fa9d10b..7b1f63c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-08-12 Jay Berkenbilt + + * 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 * Bug fix: end of line characters were not properly handled inside -- cgit v1.2.3-54-g00ecf