From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 0/5] use sendmsg|writev to reduce syscalls
Date: Wed, 19 Jun 2024 23:40:59 +0000 [thread overview]
Message-ID: <20240619234104.80183-1-e@80x24.org> (raw)
First two are overdue cleanups, the rest introduce iovec support
to allow combining more send/write calls together in order to
reduce syscall (and Perl subroutine dispatch) overhead.
It's much more pleasant to read strace output, now.
Eric Wong (5):
ds: remove needless O_APPEND import
ds: update indentation to match rest of source
use sendmsg w/ MSG_MORE to reduce syscalls
http: set Content-Length for simple array responses
http: use writev for known Content-Length responses
MANIFEST | 1 +
devel/sysdefs-list | 1 +
lib/PublicInbox/Compat.pm | 4 +-
lib/PublicInbox/DS.pm | 407 +++++++++++++++++++----------------
lib/PublicInbox/DSdeflate.pm | 11 +-
lib/PublicInbox/HTTP.pm | 31 +--
lib/PublicInbox/IMAP.pm | 14 +-
lib/PublicInbox/Syscall.pm | 66 +++++-
t/syscall.t | 20 ++
9 files changed, 328 insertions(+), 227 deletions(-)
create mode 100644 t/syscall.t
next reply other threads:[~2024-06-19 23:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-19 23:40 Eric Wong [this message]
2024-06-19 23:41 ` [PATCH 1/5] ds: remove needless O_APPEND import Eric Wong
2024-06-19 23:41 ` [PATCH 2/5] ds: update indentation to match rest of source Eric Wong
2024-06-19 23:41 ` [PATCH 3/5] use sendmsg w/ MSG_MORE to reduce syscalls Eric Wong
2024-06-19 23:41 ` [PATCH 4/5] http: set Content-Length for simple array responses Eric Wong
2024-06-19 23:41 ` [PATCH 5/5] http: use writev for known Content-Length responses Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240619234104.80183-1-e@80x24.org \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).