]> Sergey Matveev's repositories - public-inbox.git/commit
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)
commitd1024533712e32fde9c9812e604661ffc9e79019
tree596befe523eeb3d85eb15af9b8d6074d476f20d7
parent27876bd1269d18f697847a724a8465318cb3cd67
daemon: dedupe PublicInbox::Config objects by pathname

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.
lib/PublicInbox/Config.pm
lib/PublicInbox/Daemon.pm
lib/PublicInbox/InboxIdle.pm