Article View: news.software.nntp
Article #67049Re: Programming/NNTP Questions
From: boob
Date: Sun, 02 Nov 2003 17:49
Date: Sun, 02 Nov 2003 17:49
31 lines
2548 bytes
2548 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... Your best first step is going to be profiling your program to find out where the bottleneck is. Without that, optimizations are just shots in the dark. For socket I/O it's best to use either asyncronous overlapped I/O or threaded blocking I/O to maximize your throughput. Keep the I/O size moderate, if your software is running at full steam, recv should be returning MTU size, if it's returning larger then you have a bottle neck disposing of the data (i.e. disk I/O). It can help to double buffer disk operations or use overlapped I/O for that as well. I'm working from the otherside right now, I'm creating an optimized multi- threaded yEnc poster with auto verify.
Technical Details
Message-ID:
<Xns94278262F57DCboobboobboob@140.99.99.130>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!easynews-local!news.easynews.com.POSTED!not-for-mailReferences:
<3fa1d38d$0$50372$c3e8da3@news.astraweb.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns94278262F57DCboobboobboob@140.99.99.130> Subject: Re: Programming/NNTP Questions Date: Sun, 02 Nov 2003 17:49:05 GMT From: boob <boob@boob.boob> 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!easynews-local!news.easynews.com.POSTED!not-for-mail Newsgroups: news.software.nntp User-Agent: Xnews/06.01.10 Lines: 31 X-Complaints-To: abuse@easynews.com Organization: EasyNews, UseNet made Easy! X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.