Article View: news.software.nntp
Article #51660Re: Download Speed
From: Curt Welch
Date: Thu, 05 Apr 2001 18:48
Date: Thu, 05 Apr 2001 18:48
50 lines
3062 bytes
3062 bytes
"Jack" <jkt@home.net> wrote:
> On Thu, 05 Apr 2001 01:06:36 -0000, not-a-real-address@usa.net (those who
> know me have no need of my name) wrote:
> >java is slow.
>
> Wrong answer. Even if Java were slow (I don't agree with that), it should
> not have any effect on download speed in this case (internet is a LOT
> slower than Java -- which isn't slow anyway).
Java isn't as fast as the internet. But that isn't your problem.
> >>out.println("XHDR " + "Subject " + begin + "-" + end);
> >
> >most newsreaders send an xover command, e.g., ``xover 1-''.
> >
> >> System.out.println(temp);
> >
> >doing this will certainly trash your performance.
>
> Huh? I am reading a line and printing it to the screen (as opposed to
> saving it on the disk).
Try printing lines in a loop and time just how fast it works. It's
not as fast as you seem to think it is. Do you know how many bytes
have to be moved around every time you scroll the screen? Think
about it.
Take the print out and see what happens to your speed. If you are
wondering why it's not going fast, that should have been the first
thing to go.
> I think it's more likely that my news server responds slower to XHDR
> command because it takes time to find "subject" from headers?
I do too. That would have been my first guess as well. But why
guess? Change the XHDR to an XOVER and test it.
> Anyone knows if that's true for all servers or is it just my server?
All servers have different performance characteristics. But XOVER is
what _everybody_ uses these days. XHDR is the older command that's not
used very much and is implemented mostly for backward compatibility
reasons. So if one is going to be faster than the other, it's likely that
XOVER will be the faster one.
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20010405144842.423$rg@newsreader.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.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!feed.newsreader.com!news2.newsreader.com!flame.newsreader.com!not-for-mailReferences:
<hjkict03k157fjakqr5effohj7ugjl2h9e@4ax.com> <Dqdy6.1591$MM.68717@ozemail.com.au> <b88nct86r5onui9qjoaaj8pak8uslkt2a0@4ax.com> <tcnh8skt3ugb09@news.supernews.com> <7c4octsegmenh3aitknvml949s2c99i82a@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <20010405144842.423$rg@newsreader.com>
Subject: Re: Download Speed
Date: Thu, 05 Apr 2001 18:48:42 +0000
From: curt@kcwc.com (Curt Welch)
References: <hjkict03k157fjakqr5effohj7ugjl2h9e@4ax.com> <Dqdy6.1591$MM.68717@ozemail.com.au> <b88nct86r5onui9qjoaaj8pak8uslkt2a0@4ax.com> <tcnh8skt3ugb09@news.supernews.com> <7c4octsegmenh3aitknvml949s2c99i82a@4ax.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.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!feed.newsreader.com!news2.newsreader.com!flame.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-User: Curt@NewsReader.Com
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 49