normal cc9b57a2b4 zlib (gzfile_write_raw): do not resize string after .write call
Apparently, a component of Rails implements a buffering .write
method which keeps the String buffer around and makes it unsafe
for us to clear it after calling .write.

This caused Rack::Deflater to give empty results when enabled.

Fortunately, per r61631 / a55abcc0ca6f628fc05304f81e5a044d65ab4a68,
this misguided optimization was only worth a small (0.5MB) savings
and we still benefit from the majority of the memory savings in
that change.

Thanks to zunda for the bug report.

[ruby-core:90133] [Bug #15356]

Fixes: r61631 (commit a55abcc0ca6f628fc05304f81e5a044d65ab4a68)
       ("zlib: reduce garbage on gzip writes (deflate)")

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-07 07:09:31 +00:00
..
2018-10-20 05:33:13 +00:00
2018-11-13 04:51:46 +00:00
2018-02-16 08:39:48 +00:00
2018-10-20 10:30:42 +00:00
2018-10-20 07:40:45 +00:00
2017-09-30 08:35:23 +00:00
2018-12-04 12:24:12 +00:00
2017-09-29 13:21:17 +00:00
2018-10-12 20:37:30 +00:00
2018-02-16 08:39:48 +00:00
2017-09-03 13:31:34 +00:00
2017-04-20 08:21:24 +00:00