Article View: news.software.nntp
Article #67073Re: Programming/NNTP Questions
From: DS
Date: Mon, 03 Nov 2003 12:23
Date: Mon, 03 Nov 2003 12:23
58 lines
3462 bytes
3462 bytes
"aaronb" <borgaaron@yahoo.com> wrote in news:3fa1d38d$0$50372$c3e8da3@news.astraweb.com: > Can anyone suggest a good place to look for discussionson programming > NNTP applications? > > I've got some questions regarding socket operations and buffer > sizes.... My program is working just fine but I've noticed that > changing the buffer size changes things dramatically. I've done some > tests with other programs and have found that its about half as fast > as most news programs. > > Anyone have any tips for capturing the data from the socket and > processing the headers fields from an XOVER request? I have a process > that does it just fine, but I'm beginning to think that the slowness > factor in my program is based on how I am processing the buffer, > converting the data, and placing it on the screen in a listview... > > Aaron > > As boob said, you have to figure out where, if any, the bottleneck is. In the newsreader I'm writing, the bottleneck is the database system, as I'm slipstreaming messages into multiple databases at the time of the XOVER, I'm not writing anything to a temporary file. I would start out by first, picking a server that has good throughput, and a group with a good amount of messages in it. Then, do a lot of timing tests. Start out by having your program start the XOVER, when the buffers full, just dump it and keep receiving data. Time this. Next, repeat this, but take the buffer data and break it up into the correct fields, then just discard the data again. If it's any slower than the first part, you know there's a little time lost in the first step of processing, assuming the server d/l speed is consistant. Just keep doing this until you get through all of the steps the data takes from recieving through to displaying, and you should find either that one specific step is slowing things down, or all together all of the processing is slowing it down. Now, after you know where the issues are, (try to) fix it. Note: In my experience, the standard listview has proven to be quite slow in inserting items. Of course, I was trying to add 100,000+ items...the grouplist. For further discussion's outside the group, please feel free to e-mail the address above with all but the last dot removed. Regards, DS http://users.adelphia.net/~thisnthat/zanews/index.htm
Technical Details
Message-ID:
<Xns94284B9E63709idispcom@24.48.107.53>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!newsfeed1.easynews.com!easynews.com!easynews!c03.atl99!rip!news.webusenet.com!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mailReferences:
<3fa1d38d$0$50372$c3e8da3@news.astraweb.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns94284B9E63709idispcom@24.48.107.53> Subject: Re: Programming/NNTP Questions Date: Mon, 03 Nov 2003 12:23:14 GMT From: DS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a..n.e.t> References: <3fa1d38d$0$50372$c3e8da3@news.astraweb.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!newsfeed1.easynews.com!easynews.com!easynews!c03.atl99!rip!news.webusenet.com!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Home User-Agent: Xnews/5.04.25 Lines: 58 NNTP-Posting-Host: 68.71.192.103 X-Complaints-To: abuse@adelphia.net X-Trace: news1.news.adelphia.net 1067862194 68.71.192.103 (Mon, NNTP-Posting-Date: Mon, 03 Nov 2003 07:23:14 EST