This is the mail archive of the cygwin mailing list for the Cygwin 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: Severe performance degradation of writev


On Jul  7 07:28, jojelino wrote:
> 2008-07-27  Corinna Vinschen  <corinna@vinschen.de>
> 
>        * fhandler_socket.cc (fhandler_socket::send_internal): Send never
> more
>        then 64K bytes at once.  For blocking sockets, loop until entire data
>        has been sent or an error occurs.
>        (fhandler_socket::sendto): Drop code which sends on 64K bytes.
>        (fhandler_socket::sendmsg): Ditto.
> 
> This commit added workaround for KB823764. but it has brought another
> performance issue when writev sends <64k of data.

That's why the code contains that FIXME comment.  If you have a good
idea for simple code to split a message into the least number of pieces
to minimize the number of WsaSendTo calls...


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgp0IRtVc6Ejb.pgp
Description: PGP signature


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