Article View: borland.public.jbuilder.java.language
Article #16632Re: Buffered files versus unbuffered
From: Steve Schafer (TeamB)
Date: Thu, 04 Feb 1999 00:00
Date: Thu, 04 Feb 1999 00:00
21 lines
1449 bytes
1449 bytes
On Thu, 04 Feb 1999 08:45:27 +0100, Dieter Grotjahn <didi@abdata.mtk.uunet.de> wrote: >does anyone have experiences whether a BufferedOutputFile does have >significant better performance versus the unbuffered OutputFile? I mean, >doesn't the OS already do a lot of buffering and caching and so on? Assuming the amount of data to be transferred if fairly large, buffering at each stage has benefits, as it reduces the overhead at that stage. True, the operating system has its own buffers, but your internal routines could still very well be the bottleneck in getting the data to the operating system's buffers. >I would really appreciate some hints on that before I test it out by >myself <g>. You won't know for sure unless you _do_ test it yourself. There's no practical way to predict ahead of time how buffering is going to affect any specific situation. -Steve
Technical Details
Message-ID:
<3754c1cc.481903492@90.0.0.40>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36B95017.1705D28D@abdata.mtk.uunet.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e875fcad10ec4e9d X-Google-Attributes: gidf74b3,public From: pandeng@telepath.com (Steve Schafer (TeamB)) Subject: Re: Buffered files versus unbuffered Date: 1999/02/04 Message-ID: <3754c1cc.481903492@90.0.0.40> X-Deja-AN: 440627482 Content-Transfer-Encoding: 7bit References: <36B95017.1705D28D@abdata.mtk.uunet.de> Content-Type: text/plain; charset=us-ascii Organization: TeamB Mime-Version: 1.0 Reply-To: pandeng@telepath.com Newsgroups: borland.public.jbuilder.java.language