diff options
author | Eric Wong <e@80x24.org> | 2023-09-30 15:20:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-01 07:05:23 +0000 |
commit | 3f5ac9b00bc95de4a5f4f06266d3a2eb5424e24a (patch) | |
tree | b476745c0adabdf0a5a893d1c7ea13a2065222a5 /lib/PublicInbox/Gcf2Client.pm | |
parent | 9b068be88b252355c1c62f804d4f081e9a20570d (diff) | |
download | public-inbox-3f5ac9b00bc95de4a5f4f06266d3a2eb5424e24a.tar.gz |
Instead of using ->requeue to emulate level-triggered wakeups in userspace, just use level-triggered wakeups in the kernel to save some user time at the expense of system (kernel) time. Of course, the ready list implementation in the kernel via C is faster than a Perl one on our end. We must still use requeue if we've got buffered data, however. Followup-to: 1181a7e6a853 (listener: switch to level-triggered epoll)
Diffstat (limited to 'lib/PublicInbox/Gcf2Client.pm')
-rw-r--r-- | lib/PublicInbox/Gcf2Client.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Gcf2Client.pm b/lib/PublicInbox/Gcf2Client.pm index 8f442787..8ac44a5e 100644 --- a/lib/PublicInbox/Gcf2Client.pm +++ b/lib/PublicInbox/Gcf2Client.pm @@ -9,7 +9,7 @@ use PublicInbox::Git; use PublicInbox::Gcf2; # fails if Inline::C or libgit2-dev isn't available use PublicInbox::Spawn qw(spawn); use Socket qw(AF_UNIX SOCK_STREAM); -use PublicInbox::Syscall qw(EPOLLIN EPOLLET); +use PublicInbox::Syscall qw(EPOLLIN); use PublicInbox::ProcessPipe; # fields: @@ -35,7 +35,7 @@ sub new { my $sock = PublicInbox::ProcessPipe->maybe_new($pid, $s1); $self->{inflight} = []; $self->{epwatch} = \undef; # for Git->cleanup - $self->SUPER::new($sock, EPOLLIN|EPOLLET); + $self->SUPER::new($sock, EPOLLIN); } sub gcf2_async ($$$;$) { |