This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: misc topics in the i/o library


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]