]> Sergey Matveev's repositories - public-inbox.git/commit
wwwstream: oneshot: perform gzip without middleware
authorEric Wong <e@yhbt.net>
Sun, 5 Jul 2020 23:27:18 +0000 (23:27 +0000)
committerEric Wong <e@yhbt.net>
Mon, 6 Jul 2020 20:01:15 +0000 (20:01 +0000)
commitb8b03f9c896432816019828b27708fa3b6903d83
treed4fcf16173a04e9e35ac4916d9bcedc059f483cb
parentcfd960f6a2c1cff9a9537b0758fcde1d3203b17f
wwwstream: oneshot: perform gzip without middleware

Plack::Middleware::Deflater forces us to use a memory-intensive
closure.  Instead, work towards building compressed strings in
memory to reduce the overhead of buffering large HTML output.
lib/PublicInbox/GzipFilter.pm
lib/PublicInbox/WwwStream.pm