]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
cidx_log_p: don't bother with F_SETPIPE_SZ
authorEric Wong <e@80x24.org>
Wed, 25 Oct 2023 00:29:42 +0000 (00:29 +0000)
committerEric Wong <e@80x24.org>
Wed, 25 Oct 2023 07:28:44 +0000 (07:28 +0000)
It doesn't help here since the bottleneck is Xapian indexing
(and not `git log -p').  This fcntl call was also in the way
of switching to ProcessIO.

lib/PublicInbox/CidxLogP.pm

index 34f7201d68076b0b8e7b06b4685bdf392a3c9bec..ac4c1b3702b6af69f4df2400e3bf2300a74acf28 100644 (file)
 package PublicInbox::CidxLogP;
 use v5.12;
 use parent qw(PublicInbox::DS);
-use PublicInbox::Syscall qw(EPOLLIN EPOLLONESHOT $F_SETPIPE_SZ);
+use PublicInbox::Syscall qw(EPOLLIN EPOLLONESHOT);
 
 sub new {
        my ($cls, $rd, $cidx, $git, $roots) = @_;
        my $self = bless { cidx => $cidx, git => $git, roots => $roots }, $cls;
-       fcntl($rd, $F_SETPIPE_SZ, 1048576) if $F_SETPIPE_SZ;
        $self->SUPER::new($rd, EPOLLIN|EPOLLONESHOT);
 }