[Patch] Fix libstdc++/11378 (take2) + xsputn optmizations

Paolo Carlini pcarlini@unitus.it
Mon Jul 7 12:03:00 GMT 2003


Pétur Runólfsson wrote:

>It seems to me that __limit should always be set to _M_buf_size - 1,
>that way the number of write calls is minimized (IIRC this is what
>libio does).
>
Well, if we all agree, it's easy to do this change, in fact the final 
code is *much* simpler.

However, I'd like to wait for Nathan's opinion. Some time ago he 
suggested a general scheme like that I have implemented above (to be 
fine tuned, of course).

Paolo.



More information about the Libstdc++ mailing list