]> Sergey Matveev's repositories - public-inbox.git/commitdiff
daemon: dedupe PublicInbox::Config objects by pathname
authorEric Wong <e@80x24.org>
Fri, 5 Aug 2022 08:29:54 +0000 (08:29 +0000)
committerEric Wong <e@80x24.org>
Sat, 6 Aug 2022 06:34:45 +0000 (06:34 +0000)
This means all Inbox, Git, Over, Msgmap, Search objects also get
deduplicated if they belong to the same config file, reducing
memory and FD usage.  This helps save memory and improve cache
hit rates in -netd setups where NNTP, IMAP, HTTP, and POP3
servers run in the same process.

InboxIdle was the only bit which needed adjustment, but there
may be other bugs lurking despite all tests passing.


No differences found