๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36653

Re: TIN - rereading active file v.slow

#36653
From: Jason
Date: Tue, 14 Oct 1997 00:00
75 lines
2984 bytes
Urs Jan๏ฟฝen <urs@tin.org> wrote:
>     Stephen Marley <stephen@memex.co.uk> wrote:
>> I've just switched to tin 1.3 unoff BETA release 970930 and have
>> noticed that it takes much longer to do the reread active file
>> than 1.2 tin.

> right - this is a 'known' bug (any volunteers?).

Yeah, sure. It was on my list anyway...
Bear in mind that this resurrects code that hasn't been run in some
years..... YMMV

Jason.

diff -ur ../tin-1.4/tin-970930/src/active.c dev/src/active.c
--- ../tin-1.4/tin-970930/src/active.c	Sun Sep 14 19:08:52 1997
+++ dev/src/active.c	Tue Oct 14 18:20:18 1997
@@ -97,25 +97,31 @@
 			old_group[0] = '\0';
 		}
 		vWriteNewsrc ();
+#if 0	/* 1.3beta behaviour, check the on-spool counts */
 		vGrpGetSubArtInfo ();
-#if 0
+#endif
+		/* original 1.2 behaviour, reload the active[] array and all its dependants */
 		free_active_arrays ();
 		max_active = get_active_num ();
 		expand_active ();
 
+		init_group_hash();
 #if !defined(INDEX_DAEMON) && defined(HAVE_MH_MAIL_HANDLING)
 		read_mail_active_file ();
 #endif
+		group_top = 0;
 		read_news_active_file ();
-		read_attributes_file (....);
+
+		read_attributes_file (local_attributes_file, FALSE);
 #if !defined(INDEX_DAEMON) && defined(HAVE_MH_MAIL_HANDLING)
 		read_mailgroups_file ();
 #endif
 		read_newsgroups_file ();
+		/* end of former 1.2 behaviour */
 
-#endif /* #if 0 */
 		command_line = read_cmd_line_groups ();
 		read_newsrc (newsrc, command_line ? 0 : 1);
+
 		if (command_line)		/* Can't show only unread groups with cmd line groups */
 			show_only_unread_groups = FALSE;
 		else
diff -ur ../tin-1.4/tin-970930/src/main.c dev/src/main.c
--- ../tin-1.4/tin-970930/src/main.c	Fri Oct  3 17:49:28 1997
+++ dev/src/main.c	Tue Oct 14 18:20:04 1997
@@ -192,6 +192,7 @@
 	/*
 	 * Initialise active[] and add new newsgroups to start of my_group[]
 	 */
+	group_top = 0;
 	read_news_active_file ();
 #ifdef DEBUG
 	debug_print_active();
@@ -869,7 +870,7 @@
 
 /*
  * Wildcard match any newsgroups on the command line. Sort of like a limited
- * yank at startup
+ * yank at startup. Return number of groups that were matched.
  */
 int
 read_cmd_line_groups (void)

Technical Details
Message-ID: <EI1yHs.508@bechtel.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <61ubik$npj@mxgate.memex.co.uk> <61uhs3$83f$1@nz12.rz.uni-karlsruhe.de>

Show Full Headers
Complete Article Headers
Message-ID: <EI1yHs.508@bechtel.com>
Subject: Re: TIN - rereading active file v.slow
Date: Tue, 14 Oct 1997 00:00:00 +0000
From: Jason <jxfaultl@bechtel.com>
References: <61ubik$npj@mxgate.memex.co.uk> <61uhs3$83f$1@nz12.rz.uni-karlsruhe.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 280445155
Sender: Jason <jason@lnl39.bechtel.com>
Reply-To: jxfaultl@bechtel.com
X-Nntp-Posting-Host: 147.1.64.39
Organization: Bechtel Corporation
User-Agent: tin/pre-1.4-971008 (UNIX) (Linux/2.0.30 (i586))
Newsgroups: news.software.readers