]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
lei reindex: avoid forking worker process master
authorEric Wong <e@80x24.org>
Fri, 3 Jul 2026 12:23:40 +0000 (12:23 +0000)
committerEric Wong <e@80x24.org>
Tue, 7 Jul 2026 08:29:07 +0000 (08:29 +0000)
commit635387c5486b7e511eb6c852ccc398ecc508adf6
tree425ca5125dfcbf71c77e605ed584d67493cd10fa
parent4aec30d747e1fecd3c9774741ae3ddc2f6bff61b
lei reindex: avoid forking worker process

Instead of spawning a potentially expensive dedicated process to
feed numeric docids to the lei/store process, we can instead
rely on requeue + event_step and the DS event loop of the
lei/store working to iterate through the query list.

In addition to saving memory from forking, handling iteration
entirely within one process saves some syscalls and IPC
overhead.

We'll also flesh out lei-reindex.t a bit to test reindex
explicitly, even if lei-index.t already tests it.
lib/PublicInbox/Git.pm
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiReindex.pm
lib/PublicInbox/LeiStore.pm
t/lei-reindex.t