]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: rework and simplify art_lookup response
authorEric Wong <e@80x24.org>
Thu, 27 Jun 2019 04:11:22 +0000 (04:11 +0000)
committerEric Wong <e@80x24.org>
Thu, 27 Jun 2019 17:01:37 +0000 (17:01 +0000)
commit766cd51e9c77f74a2781ff35fed6554f08e0f29d
tree670829e3a69d74214d1b4da238659f1f2ca6b0a4
parent36c3b27458e722e3e9e1cb378cee16d40469b1d0
nntp: rework and simplify art_lookup response

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.
lib/PublicInbox/NNTP.pm