Thread View: news.software.readers
5 messages
5 total messages
Started by Stephen Marley
Mon, 13 Oct 1997 00:00
TIN - rereading active file v.slow
Author: Stephen Marley
Date: Mon, 13 Oct 1997 00:00
Date: Mon, 13 Oct 1997 00:00
15 lines
1028 bytes
1028 bytes
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. I have about 850 groups in .newsrc and it takes more than 2 minutes to do it on a Sparc 5. It is quite quick on startup so it seems that something is not quite right. Any suggestions? I've thought of having a very long period between re-reads but it's not an ideal solution. Thanks. -- stephen@memex.com
Re: TIN - rereading active file v.slow
Author: billy
Date: Mon, 13 Oct 1997 00:00
Date: Mon, 13 Oct 1997 00:00
13 lines
894 bytes
894 bytes
Stephen Marley <stephen@memex.co.uk> writes: > 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. Are you reading over an LAN or local spool? Are you using any command line switches when you start tin? Billy Y..
Re: TIN - rereading active file v.slow
Author: Stephen Marley
Date: Tue, 14 Oct 1997 00:00
Date: Tue, 14 Oct 1997 00:00
12 lines
944 bytes
944 bytes
billy@mix.com wrote: : Are you reading over an LAN or local spool? Are you using any : command line switches when you start tin? Over a network with tin -r. Urs has said this is a known bug so I'll just follow his workaround for now. Thanks for the help guys. -- stephen@memex.com
Re: TIN - rereading active file v.slow
Author: Jason
Date: Tue, 14 Oct 1997 00:00
Date: Tue, 14 Oct 1997 00:00
75 lines
2984 bytes
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)
Re: TIN - rereading active file v.slow
Author: Stephen Marley
Date: Wed, 15 Oct 1997 00:00
Date: Wed, 15 Oct 1997 00:00
19 lines
1049 bytes
1049 bytes
Jason <jxfaultl@bechtel.com> wrote: > Urs Jan�en <urs@tin.org> wrote: >> 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. [patch deleted] This patch did the trick. Thanks a lot Jason. -- stephen@memex.com
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