]> Sergey Matveev's repositories - public-inbox.git/commit
mbox: use Email::Simple->new to do in-place modifications
authorEric Wong <e@80x24.org>
Thu, 27 Jun 2019 08:40:19 +0000 (08:40 +0000)
committerEric Wong <e@80x24.org>
Thu, 27 Jun 2019 17:08:51 +0000 (17:08 +0000)
commit018295ad147ecbe9759d46bc8d74a776d4ad382f
treec5cee84c7647ae11834c66d833e1c645e87b44cd
parent766cd51e9c77f74a2781ff35fed6554f08e0f29d
mbox: use Email::Simple->new to do in-place modifications

Email::Simple->new will split the head from the body in-place,
and we can avoid using Email::Simple::body.  This saves us from
holding an extra copy of the message in memory, and saves us
around ~30MB when operating on ~30MB messages.
lib/PublicInbox/Mbox.pm