diff options
author | Eric Wong <e@80x24.org> | 2020-09-19 09:37:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-09-19 21:39:46 +0000 |
commit | 881a5493a8c970c10c051cc55d10d2968e71e691 (patch) | |
tree | 2ad0e7a2658ae855b4c1a5bae663633dfca01098 /lib/PublicInbox/Gcf2Client.pm | |
parent | 3750b2e2952e55fe4a04c73fc78f25c5e07d0525 (diff) | |
download | public-inbox-881a5493a8c970c10c051cc55d10d2968e71e691.tar.gz |
This amortizes the cost of recreating PublicInbox::Gcf2 objects when alternates change in v2 all.git.
Diffstat (limited to 'lib/PublicInbox/Gcf2Client.pm')
-rw-r--r-- | lib/PublicInbox/Gcf2Client.pm | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/PublicInbox/Gcf2Client.pm b/lib/PublicInbox/Gcf2Client.pm index a048cd1a..30f85c71 100644 --- a/lib/PublicInbox/Gcf2Client.pm +++ b/lib/PublicInbox/Gcf2Client.pm @@ -23,19 +23,6 @@ sub new { $self; } -sub add_git_dir { - my ($self, $git_dir) = @_; - - # ensure buffers are drained, length($git_dir) may exceed - # PIPE_BUF on platforms where PIPE_BUF is only 512 bytes - my $inflight = $self->{inflight}; - while (scalar(@$inflight)) { - $self->cat_async_step($inflight); - } - print { $self->{out} } $git_dir, "\n" or - $self->fail("write error: $!"); -} - # always false, since -gcf2 retries internally sub alternates_changed {} |