Am Thu, 27 Jun 2002 20:43:19 +0200 (CET) schrieben Sie (Vadim Zeitlin
<[EMAIL PROTECTED]>):
> On Wed, 26 Jun 2002 22:25:09 +0200 (CEST) Gerhard H�ring
> <[EMAIL PROTECTED]> wrote:
> 
> > When I try to subscribe to a newsgroup (I have a caching NNTP server), the
> > fetching of the headers takes *ages*. The NG contains ca. 25000 postings,
> > and Mahogany estimates it will take 3 hours or so. slrn/pan/sylpheed can
> > download the headers in a matter of seconds, when they're all fully cached
> > at my NNTP server.
 
> can they _really_ download 25000 headers in the matter of seconds? This would
> be surprizing...

Certainly they can. I can do it in this quick Python script, too:

import nntplib, time

t0 = time.clock()
srv = nntplib.NNTP("gargamel")
response, count, first, last, name = srv.group("comp.lang.python")
response, overview = srv.xover(first, last)
t1 = time.clock()
t = t1 - t0
print "I fetched overview data for %i articles in %f seconds." % (len(overview), t)

which results in:
"I fetched overview data for 20640 articles in 2.710000 seconds."

(My caching NNTP server is accessed via a 100 MBit LAN and it probably has all
overview data in memory).

Gerhard
--
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Mahogany-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-users

Reply via email to