user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 1/4] nntpd: do not delete newsgroup name from inbox object
  2022-08-03 20:03  4% [PATCH 0/4] use ALL to speedup -nntpd and -imapd Eric Wong
@ 2022-08-03 20:03  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2022-08-03 20:03 UTC (permalink / raw)
  To: meta

While PublicInbox::NNTP doesn't use it, config sharing inside
public-inbox-netd will mean inbox objects also get shared.
---
 lib/PublicInbox/NNTPD.pm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm
index 15a72bac..4f550bb0 100644
--- a/lib/PublicInbox/NNTPD.pm
+++ b/lib/PublicInbox/NNTPD.pm
@@ -48,7 +48,6 @@ sub refresh_groups {
 			$ibx->base_url;
 		} else {
 			delete $groups->{$ngname};
-			delete $ibx->{newsgroup};
 			# Note: don't be tempted to delete more for memory
 			# savings just yet: NNTP, IMAP, and WWW may all
 			# run in the same process someday.

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/4] use ALL to speedup -nntpd and -imapd
@ 2022-08-03 20:03  4% Eric Wong
  2022-08-03 20:03  7% ` [PATCH 1/4] nntpd: do not delete newsgroup name from inbox object Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2022-08-03 20:03 UTC (permalink / raw)
  To: meta

Just a normal "public-inbox-extindex --all" invocation should be
enough to trigger these optimizations, no --reindex necessary.

-imapd startup is around ~3x faster, NNTP LIST is ~40x faster.

Eric Wong (4):
  nntpd: do not delete newsgroup name from inbox object
  miscidx: index inbox min/max article numbers
  nntp: speed up group listings via ->ALL->misc
  imapd: use nntpd_cache to speed up startup/reload time

 lib/PublicInbox/IMAP.pm       |  17 +++---
 lib/PublicInbox/IMAPD.pm      | 100 +++++++++++-----------------------
 lib/PublicInbox/Inbox.pm      |  10 ++++
 lib/PublicInbox/MiscIdx.pm    |   8 ++-
 lib/PublicInbox/MiscSearch.pm |  21 ++++---
 lib/PublicInbox/Msgmap.pm     |  12 ++--
 lib/PublicInbox/NNTP.pm       |  26 ++++++---
 lib/PublicInbox/NNTPD.pm      |   1 -
 lib/PublicInbox/Search.pm     |   3 +-
 9 files changed, 96 insertions(+), 102 deletions(-)

^ permalink raw reply	[relevance 4%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-08-03 20:03  4% [PATCH 0/4] use ALL to speedup -nntpd and -imapd Eric Wong
2022-08-03 20:03  7% ` [PATCH 1/4] nntpd: do not delete newsgroup name from inbox object Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).