diff options
author | Eric Wong <e@yhbt.net> | 2020-07-05 23:27:37 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-06 20:01:15 +0000 |
commit | 9eac193c72e1380972f3589cb6b4f36b79183233 (patch) | |
tree | 8ab042225a260c550606cc428473cd4653f1aab2 /Documentation/mknews.perl | |
parent | a3a6e24993a4c8d0fbcb56a23548c65e62f0a6ed (diff) | |
download | public-inbox-9eac193c72e1380972f3589cb6b4f36b79183233.tar.gz |
This allows -httpd to handle other requests while waiting for git to retrieve and decode blobs. We'll also break apart t/psgi_v2.t further to ensure tests run against -httpd in addition to generic PSGI testing. Using xt/httpd-async-stream.t to test against clones of meta@public-inbox.org shows a 10-12% performance improvement with the following env: TEST_JOBS=1000 TEST_CURL_OPT=--compressed TEST_ENDPOINT=new.atom
Diffstat (limited to 'Documentation/mknews.perl')
-rwxr-xr-x | Documentation/mknews.perl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/mknews.perl b/Documentation/mknews.perl index ba049d9e..2d22d147 100755 --- a/Documentation/mknews.perl +++ b/Documentation/mknews.perl @@ -147,9 +147,10 @@ EOF } sub mime2atom { - my ($out, $astream, $mime, $ctx) = @_; - my $smsg = bless { mime => $mime }, 'PublicInbox::Smsg'; - if (defined(my $str = $astream->feed_entry($smsg))) { + my ($out, $astream, $eml, $ctx) = @_; + my $smsg = bless {}, 'PublicInbox::Smsg'; + $smsg->populate($eml); + if (defined(my $str = $astream->feed_entry($smsg, $eml))) { print $out $str or die; } } |