]> Sergey Matveev's repositories - public-inbox.git/commit
wwwstream: introduce oneshot API to avoid ->getline
authorEric Wong <e@yhbt.net>
Sat, 21 Mar 2020 02:03:46 +0000 (02:03 +0000)
committerEric Wong <e@yhbt.net>
Wed, 25 Mar 2020 01:48:35 +0000 (01:48 +0000)
commit433f6127f648e83b8f12d7b232ff726a34a85beb
tree94bbc927430a8b7d7db1e15b27324d6a7c994927
parent09bc262dd3b4e497cad0c0e814ff3b6664bc8444
wwwstream: introduce oneshot API to avoid ->getline

The ->getline API is only useful for limiting memory use when
streaming responses containing multiple emails or log messages.
However it's unnecessary complexity and overhead for callers
(PublicInbox::HTTP) when there's only a single message.
lib/PublicInbox/ViewVCS.pm
lib/PublicInbox/WwwStream.pm