]> Sergey Matveev's repositories - public-inbox.git/commit
gzipfilter: lazy allocate the deflate context
authorEric Wong <e@yhbt.net>
Sat, 21 Mar 2020 02:03:45 +0000 (02:03 +0000)
committerEric Wong <e@yhbt.net>
Wed, 25 Mar 2020 01:48:35 +0000 (01:48 +0000)
commit09bc262dd3b4e497cad0c0e814ff3b6664bc8444
tree2928960d7554c5c18188badeb2afe2a392a45d5d
parenta71cb67a1237c450a9cbbd6738c5af3b73ba4c61
gzipfilter: lazy allocate the deflate context

zlib contexts are memory-intensive, particularly when used for
compression.  Since the gzip filter may be sitting in a limiter
queue for a long period, delay the allocation we actually have
data to translate, and not a moment sooner.
lib/PublicInbox/GzipFilter.pm