🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Jeff Relf Fri, 22 Oct 2004 19:24
What could be causing this delay ?
#157352
Author: Jeff Relf
Date: Fri, 22 Oct 2004 19:24
46 lines
2028 bytes
Hi there NNTP programmers,

If you can tell me why my downloads are 14 times slower
than Dialog's I'd greatly appreciate it.

With my broadband connection  ( Comcast.COM ),
40Tude Dialog took 66 seconds to download the headers/bodies
of the last 2,000 messages in Sci.Physics.

But my program
( X.CPP, http://www.Cotse.NET/users/jeffrelf/X.CPP )
can't seem to do it in under 920 seconds... 14 times slower.

  //  Get the most recent 2000 articles from the NNTP server.

  Loop( 2000 ) Dia( 1, "Article %u", J + Bot_ID );

  #define Loop( N ) int J = -1, LLL = N ; while ( ++ J < LLL )

I've tried everything I could think of to speed it up,
including bumping up buffer sizes:

  int Buf_Sz = 100000, SzInt = sizeof int ; 

  setsockopt( Socket, SOL_SOCKET, SO_RCVBUF,
              ( char * ) & Buf_Sz, SzInt );

  //  This confirms the 100,000 byte buffer is there.

  getsockopt( Socket, SOL_SOCKET, SO_RCVBUF,
              ( char * ) & Buf_Sz, & SzInt );

  //  This pseudo code shows a well buffered call to recv()

  char Buff [ Buf_Sz ];
  recv ( Socket, Buff, Buff_SZ, 0 );

I've disabled everything but the downloading itself,
to see if the slowness might be caused by something else.

I've tried both GetMessage() and PeekMessage() with Sleep()
when waiting for the  FD_READ  event.

What could be causing this delay ?

35 seconds to download 2,000 bodies/headers.
#157378
Author: Jeff Relf
Date: Sat, 23 Oct 2004 10:42
35 lines
1814 bytes
Hi all,

Re:  Articles downloading slowly,

I figured it out after looking at 40tude Dialog's debug lines.

ARTICLE commands are much  Much  faster 
when they're grouped together.

Wow... Using a broadband connection, X.CPP now requires only 
35 seconds to download 2,000 bodies/headers  ( ~ 10 meg )
from Individual.NET instead of 920 seconds,
...That's 26 times faster !

40tude Dialog takes 66 seconds 
because it sends out ARTICLE commands in small groups.

This really makes me wonder why the  " Article "  command
has no range switch.

X.EXE is now showing every single body/header on the screen,
which is a strange way to view Cola.
It's no memory/CPU strain at all.

When the left button is held down,
gradually moving the cursor to the top of the screen
gradually scrolls to the top  ( and with  _ Zero _  delay ).

Likewise going to the bottom of the screen like that
goes to the bottom of the file.

The wheel scrolls lines up/down,
holding the middle button down makes it page up/down.

Cola is a 4.5 megabyte download in 40 seconds.
#157408
Author: Jeff Relf
Date: Sat, 23 Oct 2004 21:57
13 lines
1169 bytes
Hi all,

Here I am responding to myself again about  X.CPP .

I find it interesting to note that 
out of the last 2,000  ( ~ 5 days )  articles in Cola,
only 2 are missing  ( ¿ canceled ).

And that's only a 4.5 megabyte download,
at a rate of 9 seconds per meg  
( Comcast.COM  <-->  Individual.NET ).

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