about summary refs log tree commit homepage
path: root/lib/PublicInbox/Mbox.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-27 04:11:22 +0000
committerEric Wong <e@80x24.org>2019-06-27 17:01:37 +0000
commit766cd51e9c77f74a2781ff35fed6554f08e0f29d (patch)
tree670829e3a69d74214d1b4da238659f1f2ca6b0a4 /lib/PublicInbox/Mbox.pm
parent36c3b27458e722e3e9e1cb378cee16d40469b1d0 (diff)
downloadpublic-inbox-766cd51e9c77f74a2781ff35fed6554f08e0f29d.tar.gz
We don't need some of the array elements returned from
art_lookup, anymore (and haven't used them in years).

We can also shorten the lifetime of the Email::Simple object by
relying on the fact Email::Simple->new will modify it's arg if
given a SCALARREF and allow us to avoid Email::Simple::body
calls.

Unfortunately, this doesn't seem to provide any noticeable
improvement in memory usage when dealing with a 30+ MB test
message, since our previous use of ->body_set('') was saving
some memory, but forcing a LF-only body to be CRLF was making
Perl allocate extra space for s///sg.
Diffstat (limited to 'lib/PublicInbox/Mbox.pm')
0 files changed, 0 insertions, 0 deletions