🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Bryan T Dongray Tue, 28 Sep 1993 17:57
Tin 1.22 speedup
#6022
Author: Bryan T Dongray
Date: Tue, 28 Sep 1993 17:57
83 lines
3667 bytes
Here is a patch that fixes a speed up where large gaps in articles
on an NNTPSERVER are skipped over, which reduces network traffic
and improves response not just with large gaps but also slow
networks (eg a WAN) with any gaps. This is a real speedup.

I'll quote a "slowdown" someone informed me of, which helped me solve this.

> From: Bruce Hauge <bruceh@hpcvcdv.cv.hp.com>
> Subject: Re: Slow indexing in PL2
> 
> Several of our news groups, for whatever reason, have a group of unexpired 
> articles dating back to the Jan/Feb timeframe. For example, "misc.consumers" 
> has 84 articles dated between Jan. 5th and Feb. 3rd. Immediately after this
> group of articles, the "normal" group of articles start at Sept. 18th and
> continue on. The grouping of these articles by number is:
> 
>   9945-10026, 10104, 11463, 24029-24551
>       ^         ^      ^         ^
>       |         |      |         |__ Sept 18th to present
>       |         |      |      
>       |         |      |__ Feb 3rd
>       |         |
>       |         |__ Jan 6th
>       |
>       |__ Jan 5th
> 
> What I see when TIN creates the index is that the first 84 dots (...) appear
> fairly quickly, but then there is a long pause before the indexing resumes:
> 
> tin 1.2 PL2 [UNIX] (c) Copyright 1991-93 Iain Lea.
> Updating misc.consumers
> ................................................................................
> ....
>     ^
>     |__ long pause at this point
> 
> These 84 dots (I assume) represent the first 84 articles in the group, which
> happen to correspond to articles 9945-10026, 10104, 11463. In between 
> articles 11464 and 24028, there is a long pause. The indexing doesn't resume
> until it hits article 24029.
> 
[stuff deleted]
> 
> Can TIN be setup to ignore these gaps in article numbering?

Thanks Bruce, I missed the fact that this was "optimised" so not put in the PL2
release quite properly (I don't have such large gaps so my timings were still fast).

BTW, Bruce's speedup was over 3.5x with this fix.

Here is the fix I suggest, it'll go into PL3 I suppose.

			Bryan.

-----------------------------------CUT-HERE-------------------------------------
*** ../tin-1.22/open.c	Mon Sep 27 13:01:45 1993
--- open.c	Tue Sep 28 17:12:52 1993
***************
*** 509,515 ****
			}
			if (atoi (buf) == OK_NOTEXT) {
				ptr = buf;
!				while (isspace(*ptr) || isdigit(*ptr)) {
					ptr++;
				}
				head_next = atoi (ptr);
--- 509,518 ----
			}
			if (atoi (buf) == OK_NOTEXT) {
				ptr = buf;
!				while (isspace(*ptr)) {
!					ptr++;
!				}
!				while (isdigit(*ptr)) {
					ptr++;
				}
				head_next = atoi (ptr);
-----------------------------------CUT-HERE-------------------------------------

--
| _____ | <btd@uk.cray.com>     Superman fights for:
|-. | .-| UNIX systems admin    "Truth, Justice, and the American way",
`-' | `-' Postmaster (no cat)   obviously these three are mutually exclusive.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads