]> Sergey Matveev's repositories - public-inbox.git/commit
www: discard multipart parent on iteration
authorEric Wong <e@yhbt.net>
Sat, 11 Jan 2020 06:28:16 +0000 (06:28 +0000)
committerEric Wong <e@yhbt.net>
Sun, 12 Jan 2020 21:26:42 +0000 (21:26 +0000)
commit195c40c82e77c73e171f75529b80c7561565d512
tree738c85840311d34629ae46bbc3ceb4cd9e5d8095
parent80e819ceebf922ecda684cc8ef0848ddc709a73c
www: discard multipart parent on iteration

We're often iterating through messages while writing to another
buffer in our WWW interface, causing memory usage to multiply.
Since we know we won't need to keep the MIME object around in
some cases, and can tell msg_iter to clobber the on-stack
variable while it operates on subparts of multipart messages.

With xt/mem-msgview.t switched to multipart from the previous
commit, this shows a 13 MB memory reduction on that test.
lib/PublicInbox/MsgIter.pm
lib/PublicInbox/SolverGit.pm
lib/PublicInbox/View.pm
lib/PublicInbox/WwwAtomStream.pm
lib/PublicInbox/WwwAttach.pm