From 57af9c8d0bedafac3267b5b42f963bb8aa5c2ea1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 7 May 2020 21:05:48 +0000 Subject: eml: pure-Perl replacement for Email::MIME Email::MIME eats memory, wastes time parsing out all the headers, and some problems can't be fixed without breaking compatibility for other projects which depend on it. Informal benchmarks show a ~2x improvement in general stats gathering scripts and ~10% improvement in HTML view rendering. We also don't need the ability to create MIME messages, just parse them and maybe drop an attachment. While this isn't the zero-copy or streaming MIME parser of my dreams; it's still an improvement in that it doesn't keep a scalar copy of the raw body around along with subparts. It also doesn't parse subparts up front, so it can also replace our uses of Email::Simple. --- MANIFEST | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MANIFEST') diff --git a/MANIFEST b/MANIFEST index 90a05d33..0906448e 100644 --- a/MANIFEST +++ b/MANIFEST @@ -105,6 +105,7 @@ lib/PublicInbox/DSKQXS.pm lib/PublicInbox/DSPoll.pm lib/PublicInbox/Daemon.pm lib/PublicInbox/Emergency.pm +lib/PublicInbox/Eml.pm lib/PublicInbox/ExtMsg.pm lib/PublicInbox/Feed.pm lib/PublicInbox/Filter/Base.pm @@ -229,6 +230,7 @@ t/ds-leak.t t/ds-poll.t t/edit.t t/emergency.t +t/eml.t t/epoll.t t/fail-bin/spamc t/feed.t -- cgit v1.2.3-24-ge0c7