This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/9876: filebuf::sputc more than 10% slower than putc
- From: paolo at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, peturr02 at ru dot is
- Date: 27 Feb 2003 20:22:05 -0000
- Subject: Re: libstdc++/9876: filebuf::sputc more than 10% slower than putc
- Reply-to: paolo at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, peturr02 at ru dot is, gcc-gnats at gcc dot gnu dot org
Synopsis: filebuf::sputc more than 10% slower than putc
State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Thu Feb 27 20:22:05 2003
State-Changed-Why:
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!
On my P4-2400 (512 MB, linux2.4.20, glibc2.3.1, etc.),
these are the timings (gcc-3.2.2, -O2):
iostreams:
3.500u 0.330s 0:03.92 97.7% 0+0k 0+0io 197pf+0w
stdio:
3.570u 0.430s 0:04.03 99.2% 0+0k 0+0io 194pf+0w
Ideas?
Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9876