This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: [PATCH] Do not break buffers in fvwrite for unbuffered files


On Oct 21 16:15, Federico wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 10/21/2013 02:47 PM, Corinna Vinschen wrote:
> > 
> > Maye it makes sense to use the largest multiple  of BUFSIZ <=
> > MAX_INT. See below.
> >> 
> >> I'm wondering if it makes sense to avoid splitting writes (and
> >> reads) also for buffered files. glibc appears to do it,
> > 
> > Buffered writes are already split into fp->_bf._size chunks.
> > Glibc basically uses the largest multiple of fp->_bf._size <= len
> > instead. We could do the same.  Would you like to create a patch
> > for that?
> 
> I'll have a look at what can be done in the next days.

Thanks!


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpRblZ0Picx9.pgp
Description: PGP signature


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