]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
lei/store: stop shard workers + cat-file on idle
authorEric Wong <e@80x24.org>
Tue, 16 Apr 2024 20:56:28 +0000 (20:56 +0000)
committerEric Wong <e@80x24.org>
Wed, 17 Apr 2024 09:27:43 +0000 (09:27 +0000)
commit4ff8e8d21ab55fdb8d94f8b6fd58aaafd03d8dca
tree77fc9e42a919b8f2972999d7bb80f211f1203631
parentcad60b2aa5fee563f2a6b41fa0cc7267e13e4bde
lei/store: stop shard workers + cat-file on idle

Schedule a timer to stop shard workers and the git-cat-file
process after a `barrier' command.  This allows us to save some
memory again when the lei-daemon is idle but preserves the fork
overhead reduction when issuing many commands in parallel or in
quick succession.
lib/PublicInbox/LeiStore.pm