🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5695

Re: Tin 1.21

#5695
From: Otto Lind
Date: Mon, 06 Sep 1993 03:29
57 lines
2476 bytes
Bryan T Dongray (btd@uk.cray.com) wrote:
: Here are three (NNTP mode) improvements:
[deleted]

Thanks for the patchs. I applied them and they seems to work fine. The one
additional change I made was to change MODULO_COUNT_NUM from 5 to 10, since
the indexing was so much faster :-)

In addition to the slow indexing, I found that there is a noticable amount of
time spent scaning things when entering a group (even if the index was
already compiled). In looking at the code, I found that the function
read_newsrc_line() was calling find_group_index() for all the groups when a
particular group was entered. I changed this so that it was called only for
group in question, and noticed substantial performance improvment (I may have
broken something, but things seem to be fine). I have included a patch for
this change below.

Otto

---------- cut here ----------
*** newsrc.c	Sun Sep  5 19:32:38 1993
--- newsrc.c.orig	Tue Aug 31 20:55:23 1993
***************
*** 320,333 ****
  			p++;
  		if (*p)
  			*p++ = '\0';
!
! 		if (strcmp (buf, group) == 0) {
! 			i = find_group_index(buf);
! 			if (i >= 0)
! 				parse_unread (p, i);
! 			parse_seq (p);
! 		}
  			
  	}

  	lasttime = curtime;
--- 320,331 ----
  			p++;
  		if (*p)
  			*p++ = '\0';
! 		i = find_group_index(buf);
! 		if (i >= 0)
! 			parse_unread (p, i);
  			
+ 		if (strcmp (buf, group) == 0)
+ 			parse_seq (p);
  	}

  	lasttime = curtime;
---------- cut here ----------

--
Otto Lind                  Coactive Aesthetics
otto@coactive.com          P.O. Box 425967, San Francisco, CA 94142
netcom!coactive!otto       voice:(415)626-5152    fax:(415)626-6320
Technical Details
Message-ID: <26eaqoINNpf@disc.coactive.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!dearn!frmop11.cnusc.fr!univ-lyon1.fr!scsing.switch.ch!xlink.net! howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!netcomsv!disc.coactive.com!otto
References: <CCqvCL.HII@csn.org> <1993Sep5.123724.16980@bard.cray.com>

Show Full Headers
Complete Article Headers
Message-ID: <26eaqoINNpf@disc.coactive.com>
Subject: Re: Tin 1.21
Date: Mon, 06 Sep 1993 03:29:28 +0000
From: otto@coactive.com (Otto Lind)
References: <CCqvCL.HII@csn.org> <1993Sep5.123724.16980@bard.cray.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!dearn!frmop11.cnusc.fr!univ-lyon1.fr!scsing.switch.ch!xlink.net! howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!netcomsv!disc.coactive.com!otto
Newsgroups: news.software.readers
Organization: Coactive Aesthetics Inc.
Lines: 57
NNTP-Posting-Host: gandalf.coactive.com
X-Newsreader: TIN [version 1.2 PL1]