Thread View: news.software.readers
2 messages
2 total messages
Started by Jason Ornstein
Thu, 02 Sep 1993 20:53
Tin 1.21
Author: Jason Ornstein
Date: Thu, 02 Sep 1993 20:53
Date: Thu, 02 Sep 1993 20:53
11 lines
977 bytes
977 bytes
Along with everyone else using the latest tin, we are having a lot of problems. Is there any hope to getting a newer version of this package out that works better? In the mean time, could someone please send me the patches someone just posted to get a 12x speed enhancement. The article has already expired at the site I read news from. Thanks. -jason
Re: Tin 1.21
Author: Otto Lind
Date: Mon, 06 Sep 1993 03:29
Date: Mon, 06 Sep 1993 03:29
57 lines
2476 bytes
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
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