This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: misc topics in the i/o library
- From: Richard Henderson <rth at twiddle dot net>
- To: Bud Davis <bdavis9659 at comcast dot net>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Sat, 4 Sep 2004 19:06:32 -0700
- Subject: Re: misc topics in the i/o library
- References: <1094005872.16539.42.camel@localhost.localdomain>
On Tue, Aug 31, 2004 at 09:31:12PM -0500, Bud Davis wrote:
> another thing people like to do is write small records. these take
> a performance hit because we have to seek back to the beginning to
> write the byte count. if the front end could tell tell us how big
> the record is going to be prior to sending the data, that would be
> a time saver. Is this possible ?
Even if you don't get the data at once, pwrite may be a possibility.
> #3. size of chunk used for mmap. it is too small. why not just mmap
> the entire file ? let the OS handle reading it from disk ?
Definitely let the OS handle it.
r~