[Patch] Fix libstdc++/11722

Paolo Carlini pcarlini@suse.de
Mon Sep 13 17:20:00 GMT 2004


Hi,

the below fixes for mainline (*) this long standing performance PR. The
final code seems sufficiently clear to me and the improvement satisfying.
For the C++ case going in the performance testsuite (P4-2400, -O2)

mainline
--------
22.190u 25.310s 0:47.68  99.6%    0+0k 0+0io 200pf+0w

mainline + patch
----------------
 0.250u  0.250s 0:00.50 100.0%    0+0k 0+0io 199pf+0w

Also, notice that, similarly to what went in for sputn, every read with
__n > __buflen (and noconv) takes advantage, *not* only the unbuffered
ones.

Tested x86-linux, will wait a few hours, in case of comments.

Paolo.

(*) After a period of testing maybe suited for 3_4-branch too.

/////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_11722
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040913/8f707f33/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_11722
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040913/8f707f33/attachment-0001.ksh>


More information about the Libstdc++ mailing list