unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH 0/5] use sendmsg|writev to reduce syscalls
@ 2024-06-19 23:40 Eric Wong
  2024-06-19 23:41 ` [PATCH 1/5] ds: remove needless O_APPEND import Eric Wong
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Eric Wong @ 2024-06-19 23:40 UTC (permalink / raw)
  To: meta

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-19 23:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 23:40 [PATCH 0/5] use sendmsg|writev to reduce syscalls Eric Wong
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

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).