diff options
author | Eric Wong <e@80x24.org> | 2021-01-18 04:30:31 -0600 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-18 21:20:25 +0000 |
commit | 51191d611e918ff3ef6e9ce8ee52ba7b2cd2144c (patch) | |
tree | c787b82356d3f7e42d003a478d8c3a3ce0ee956e /lib/PublicInbox/Spawn.pm | |
parent | 21671ed82f8d1a7b6de593e073079e29c5675aa8 (diff) | |
download | public-inbox-51191d611e918ff3ef6e9ce8ee52ba7b2cd2144c.tar.gz |
With 4 dedicated workers, this seems to provide a 100-120% speedup on a 4 core machine when writing thousands of search results to a Maildir or mbox. This also sets us up for high-latency IMAP destinations in the future. This opens the door to more speedup opportunities such as optimizing dedupe locking and other ways to reduce contention. This change is fairly complex and convoluted, unfortunately. Further work may allow us to simplify it and even improve performance.
Diffstat (limited to 'lib/PublicInbox/Spawn.pm')
-rw-r--r-- | lib/PublicInbox/Spawn.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm index e5c0b1e9..b03f2d59 100644 --- a/lib/PublicInbox/Spawn.pm +++ b/lib/PublicInbox/Spawn.pm @@ -209,7 +209,7 @@ my $fdpass = <<'FDPASS'; #include <sys/socket.h> #if defined(CMSG_SPACE) && defined(CMSG_LEN) -#define SEND_FD_CAPA 4 +#define SEND_FD_CAPA 5 #define SEND_FD_SPACE (SEND_FD_CAPA * sizeof(int)) union my_cmsg { struct cmsghdr hdr; |