]> Sergey Matveev's repositories - public-inbox.git/commit
mbox: halve ->getline "context switches"
authorEric Wong <e@yhbt.net>
Sun, 5 Apr 2020 07:53:48 +0000 (07:53 +0000)
committerEric Wong <e@yhbt.net>
Sun, 5 Apr 2020 22:06:22 +0000 (22:06 +0000)
commit1e5d704f1234ded472b800e42bedb5579780296e
tree7cd25b6853d93b98a78e740bc5cc6b816c0637f2
parentfec19e492eacb10f990091592f423542ab4249bd
mbox: halve ->getline "context switches"

We don't need to take extra trips through the event loop for a
single message (in the common case of Message-IDs being unique).
In fact, holding the body reference left behind by Email::Simple
could be harmful to memory usage, though in practice it's not a
big problem since code paths which use Email::MIME take far more.
lib/PublicInbox/Mbox.pm