Article View: news.software.readers
Article #70485Re: [slrn] esc-1-esc p *SLOW* - like minutes stretching by
From: Thomas Schultz
Date: Sun, 14 Jan 2001 19:52
Date: Sun, 14 Jan 2001 19:52
87 lines
4141 bytes
4141 bytes
On 01 January 2001, Jurriaan <no_spam_here@rivierenland.xs4all.nl> wrote:
[Finding article children is recursive and therefore slow]
> Can anyone tell me how often this finds something that wasn't found
> in step 2 in step 3?
>
> If I #if 0 it out, it is very speedy indeed (seconds instead of
> minutes). How often is this extra step necessary? What are the
> relevant newsreaders? Did they die out yet?
I wrote a patch that allows you to decide via the prefix argument
whether or not you want the search to be recursive (ESC-2 ESC-p uses
the faster, less thorough version). I did some tests with it; here are
the results:
Test # | ESC-1 ESC-p | ESC-2 ESC-p | %
-------+-------------+-------------+-----
1 | 28 | 28 | 100
2 | 31 | 31 | 100
3 | 32 | 28 | 88
4 | 72 | 65 | 90
5 | 98 | 47 | 48
6 | 128 | 90 | 70
7 | 170 | 170 | 100
8 | 342 | 205 | 60
YMMV. How well the fast version works does not only depend on the
involved user agents, but also quite heavily on the thread depth (not
to be confused with the total number of messages in a thread).
As the user might want to have the choice here (maybe first trying the
fast version to see if it gets the article he was looking for), I'll
attach the patch I used:
#v+
diff -ur slrn-0.9.6.3.orig/src/art.c slrn-0.9.6.3/src/art.c
--- slrn-0.9.6.3.orig/src/art.c Mon Sep 18 00:35:28 2000
+++ slrn-0.9.6.3/src/art.c Sun Jan 14 20:08:51 2001
@@ -5475,6 +5475,14 @@
static void get_children_headers (void) /*{{{*/
{
Slrn_Header_Type *h;
+ int thorough_search;
+
+ if (Slrn_Prefix_Arg_Ptr == NULL) thorough_search = 1;
+ else
+ {
+ Slrn_Prefix_Arg_Ptr = NULL;
+ thorough_search = 0;
+ }
/* slrn_set_suspension (1); */
@@ -5487,7 +5495,7 @@
sort_by_sorting_mode ();
h = Slrn_Current_Header->child;
- if (h != NULL)
+ if ((h != NULL) && thorough_search)
{
/* Now walk the tree getting children headers. For efficiency,
* only children currently threaded will be searched. Hopefully the
@@ -5534,7 +5542,8 @@
if (Slrn_Prefix_Arg_Ptr == NULL) no_error_no_thread = 0;
else
{
- Slrn_Prefix_Arg_Ptr = NULL;
+ if (*Slrn_Prefix_Arg_Ptr != 2) Slrn_Prefix_Arg_Ptr = NULL;
+ /* else: leave it for get_children_headers() */
no_error_no_thread = 1;
}
@@ -5584,6 +5593,7 @@
{
sort_by_sorting_mode ();
if (SLKeyBoard_Quit == 0) get_children_headers ();
+ else Slrn_Prefix_Arg_Ptr = NULL;
}
else (void) slrn_locate_header_by_msgid (buf, 1); /* syncs the line */
#v-
--
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
-> [2000-12-21] slrn 0.9.6.3pl3 released
-> [2000-10-22] Matthias Friedrich joins the team
-> [2000-09-27] Initial release of the slrn reference manual
Technical Details
Message-ID:
<slrn9640sk.5q2.tststs@starflower.tststs.ddns.org>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!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mailReferences:
<slrn94u6ue.5b9._hate_spam_thunder7@middle.of.nowhere> <slrn950m09.923._hate_spam_thunder7@middle.of.nowhere>Show Full Headers
Complete Article Headers
Message-ID: <slrn9640sk.5q2.tststs@starflower.tststs.ddns.org> Subject: Re: [slrn] esc-1-esc p *SLOW* - like minutes stretching by Date: Sun, 14 Jan 2001 19:52:52 +0000 From: tststs@gmx.de (Thomas Schultz) References: <slrn94u6ue.5b9._hate_spam_thunder7@middle.of.nowhere> <slrn950m09.923._hate_spam_thunder7@middle.of.nowhere> 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!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!sunqbc.risq.qc.ca!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mail Newsgroups: news.software.readers Organization: Pinguin online. Lines: 86 NNTP-Posting-Host: 149.225.24.196 NNTP-Posting-Date: 15 Jan 2001 14:46:35 GMT X-Complaints-To: abuse@cityweb.de X-Server-Date: 15 Jan 2001 14:44:10 GMT User-Agent: slrn/0.9.6.3pl4 (Linux)