From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: TODO: Maildir import speedups
Date: Thu, 3 Jun 2021 10:05:34 +0000 [thread overview]
Message-ID: <20210603100534.GA8833@dcvr> (raw)
In-Reply-To: <20210603010520.GA13508@dcvr>
Eric Wong <e@80x24.org> wrote:
> On a 4-core CPU, this speeds up "lei import" on a largish IMAP
> inbox with 75K messages from ~21 minutes down to 40s.
Maildir with 75K messages is nearly 8 minutes, right now :<
> Parallelizing with the new LeiImportKw WQ worker class gives a
> near-linear speedup and brought the runtime down to ~5:40.
Maildir can be completely parallelized, since iteration
has absolutely no ordering, that could bring it to around
2 minutes on a 4-core machine w/o SQLite optimization.
But "--new-only"/"--quick" will require us to store a ctime
in mail_sync.sqlite3 for Maildirs.
See also ("lei timestamp resolution for mail synchronization"):
https://public-inbox.org/meta/20210507001332.GA18490@dcvr/
> The new idx_fid_uid index on the "fid" and "uid" columns of
> blob2num in mail_sync.sqlite3 brought us the final speedup.
blob2name (fid,name) may need a similar index.
prev parent reply other threads:[~2021-06-03 10:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-03 0:17 [PATCH] lei import: speed up kw updates for old IMAP messages Eric Wong
2021-06-03 1:05 ` [PATCH v2] " Eric Wong
2021-06-03 10:05 ` Eric Wong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210603100534.GA8833@dcvr \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).