diff options
author | Eric Wong <e@80x24.org> | 2020-11-23 07:06:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-24 05:03:55 +0000 |
commit | be688d5b00bb77c6601b3ab680403ecd71ac4871 (patch) | |
tree | cc77f8b9a7dd6f5a357ba47e0b913302547b7be6 /lib/PublicInbox/Inbox.pm | |
parent | 616a08457175b442d4caeb67f9ccd9d3e69f50f5 (diff) | |
download | public-inbox-be688d5b00bb77c6601b3ab680403ecd71ac4871.tar.gz |
For a mirror of lore.kernel.org with >140 inboxes, this speeds up manifest.js.gz generation from ~1s to 40ms on my HW. This is still unacceptable when dealing with thousands of inboxes, but gets us closer to where we need to be.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r-- | lib/PublicInbox/Inbox.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index a1a072ad..5a22e40d 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -429,4 +429,6 @@ sub on_unlock { sub uidvalidity { $_[0]->{uidvalidity} //= $_[0]->mm->created_at } +sub eidx_key { $_[0]->{newsgroup} // $_[0]->{inboxdir} } + 1; |