about summary refs log tree commit homepage
path: root/xt
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-10 07:04:22 +0000
committerEric Wong <e@yhbt.net>2020-06-13 07:55:45 +0000
commiteeeae20893a2595631359e719eadac9686572734 (patch)
treec63dc3e396f16066db3e6366997fe11612676ad2 /xt
parent6d2fad2c3f6eaf7334b1e805de607e1d5b24ff9e (diff)
downloadpublic-inbox-eeeae20893a2595631359e719eadac9686572734.tar.gz
This ought to improve overall performance with multiple clients.
Single client performance suffers a tiny bit due to extra
syscall overhead from epoll.

This also makes the existing async interface easier-to-use,
since calling cat_async_begin is no longer required.
Diffstat (limited to 'xt')
-rw-r--r--xt/cmp-msgstr.t1
-rw-r--r--xt/cmp-msgview.t1
-rw-r--r--xt/eml_check_limits.t1
-rw-r--r--xt/git_async_cmp.t1
-rw-r--r--xt/msgtime_cmp.t1
-rw-r--r--xt/perf-msgview.t1
6 files changed, 0 insertions, 6 deletions
diff --git a/xt/cmp-msgstr.t b/xt/cmp-msgstr.t
index 6bae0f66..0276f845 100644
--- a/xt/cmp-msgstr.t
+++ b/xt/cmp-msgstr.t
@@ -93,7 +93,6 @@ my $git_cb = sub {
                 diag xqx([qw(git diff), "$tmpdir/mime", "$tmpdir/eml"]);
         }
 };
-$git->cat_async_begin;
 my $t = timeit(1, sub {
         while (<$fh>) {
                 my ($oid, $type) = split / /;
diff --git a/xt/cmp-msgview.t b/xt/cmp-msgview.t
index 66fb467e..5bd7aa17 100644
--- a/xt/cmp-msgview.t
+++ b/xt/cmp-msgview.t
@@ -77,7 +77,6 @@ my $git_cb = sub {
                 is_deeply($eml_cmp, $mime_cmp, "$inboxdir $oid match");
         }
 };
-$git->cat_async_begin;
 my $t = timeit(1, sub {
         while (<$fh>) {
                 my ($oid, $type) = split / /;
diff --git a/xt/eml_check_limits.t b/xt/eml_check_limits.t
index 39de0476..2d632799 100644
--- a/xt/eml_check_limits.t
+++ b/xt/eml_check_limits.t
@@ -55,7 +55,6 @@ my $cat_cb = sub {
 };
 
 my $t = timeit(1, sub {
-        $git->cat_async_begin;
         my ($blob, $type);
         while (<$fh>) {
                 ($blob, $type) = split / /;
diff --git a/xt/git_async_cmp.t b/xt/git_async_cmp.t
index 46d27b26..8f8d1cf4 100644
--- a/xt/git_async_cmp.t
+++ b/xt/git_async_cmp.t
@@ -25,7 +25,6 @@ my $async = timeit($nr, sub {
                 $dig->add($$bref);
         };
         my $cat = $git->popen(@cat);
-        $git->cat_async_begin;
 
         while (<$cat>) {
                 my ($oid, undef, undef) = split(/ /);
diff --git a/xt/msgtime_cmp.t b/xt/msgtime_cmp.t
index 95d7c64b..0ce3c042 100644
--- a/xt/msgtime_cmp.t
+++ b/xt/msgtime_cmp.t
@@ -59,7 +59,6 @@ sub compare {
 }
 
 my $fh = $git->popen(@cat);
-$git->cat_async_begin;
 while (<$fh>) {
         my ($oid, $type) = split / /;
         next if $type ne 'blob';
diff --git a/xt/perf-msgview.t b/xt/perf-msgview.t
index 30fc07dc..d99101a3 100644
--- a/xt/perf-msgview.t
+++ b/xt/perf-msgview.t
@@ -44,7 +44,6 @@ my $cb = sub {
         $obuf = '';
 };
 
-$git->cat_async_begin;
 my $t = timeit(1, sub {
         $ctx->{obuf} = \$obuf;
         $ctx->{mhref} = '../';