This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: libstdc++/9876: filebuf::sputc more than 10% slower than putc
- From: Pétur Runólfsson <peturr02 at ru dot is>
- To: <paolo at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<nobody at gcc dot gnu dot org>,Pétur Runólfsson <peturr02 at ru dot is>,<gcc-gnats at gcc dot gnu dot org>
- Date: Fri, 28 Feb 2003 15:57:06 -0000
- Subject: RE: libstdc++/9876: filebuf::sputc more than 10% slower than putc
> Yes, filebuf::sputc shall be improved: patches welcome,
> or, otherwise, stay tuned!
>
> However, the funny thing of your PR is that, as a matter of
> fact, I *cannot* reproduce the trend neither with mainline
> (which produces better code, indeed) nor with 3.2.2!
Whoops, s/putc/putc_unlocked/ :-P
putc calls flockfile/funlockfile for each character,
streambuf::sputc does not do so and should be compared against
putc_unlocked.
Petur