diff options
author | Eric Wong <e@80x24.org> | 2021-06-08 09:50:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-06-08 16:50:47 +0000 |
commit | 10b523eb017162240b1ac3647f8dcbbf2be348a7 (patch) | |
tree | 9ea63ea4c4919556a1bf5b335f365372dfa1c84a /t | |
parent | ba34a69490dce6ea3ba85ee5416b6590fa0c0a39 (diff) | |
download | public-inbox-10b523eb017162240b1ac3647f8dcbbf2be348a7.tar.gz |
On a 4-core CPU, this speeds up "lei import" on a largish Maildir inbox with 75K messages from ~8 minutes down to ~40s. Parallelizing alone did not bring any improvement and may even hurt performance slightly, depending on CPU availability. However, creating the index on the "fid" and "name" columns in blob2name yields us the same speedup we got. Parallelizing IMAP makes more sense due to the fact most IMAP stores are non-local and subject to network latency. Followup-to: bdecd7ed8e0dcf0b45491b947cd737ba8cfe38a3 ("lei import: speed up kw updates for old IMAP messages")
Diffstat (limited to 't')
-rw-r--r-- | t/lei-import-maildir.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lei-import-maildir.t b/t/lei-import-maildir.t index 688b10ce..c81e7805 100644 --- a/t/lei-import-maildir.t +++ b/t/lei-import-maildir.t @@ -28,7 +28,7 @@ test_lei(sub { is(scalar(keys %v), 1, 'inspect handles relative and absolute paths'); my $inspect = json_utf8->decode([ keys %v ]->[0]); is_deeply($inspect, {"maildir:$md" => { 'name.count' => 1 }}, - 'inspect maildir: path had expected output'); + 'inspect maildir: path had expected output') or xbail($inspect); lei_ok(qw(q s:boolean)); my $res = json_utf8->decode($lei_out); |