public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/7076: iostreams very slow compared with earlier gcc versions
@ 2003-02-20 18:28 bkoz
0 siblings, 0 replies; 3+ messages in thread
From: bkoz @ 2003-02-20 18:28 UTC (permalink / raw)
To: bkoz, gcc-bugs, gcc-prs, morten, nobody
Synopsis: iostreams very slow compared with earlier gcc versions
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Thu Feb 20 18:28:44 2003
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Thu Feb 20 18:28:44 2003
State-Changed-Why:
This specific example has been fixed in gcc-3.4. I hope to back port these fixes into the gcc-3.3 and gcc-3.2 compilers in the near future.
Performance improvement, and optimization work, continues. Please be patient.
-benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7076
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libstdc++/7076: iostreams very slow compared with earlier gcc versions
@ 2003-02-07 2:56 Joe Buck
0 siblings, 0 replies; 3+ messages in thread
From: Joe Buck @ 2003-02-07 2:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR libstdc++/7076; it has been noted by GNATS.
From: Joe Buck <jbuck@synopsys.com>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, morten@wtf.dk
Cc:
Subject: Re: libstdc++/7076: iostreams very slow compared with earlier gcc
versions
Date: Thu, 06 Feb 2003 18:48:06 -0800
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7076
It seems that snprintf is being called now, while it wasn't in libstdc++
version 2,
making things about 8x to more than 20x slower depending on details.
^ permalink raw reply [flat|nested] 3+ messages in thread
* libstdc++/7076: iostreams very slow compared with earlier gcc versions
@ 2002-06-19 6:26 morten
0 siblings, 0 replies; 3+ messages in thread
From: morten @ 2002-06-19 6:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 7076
>Category: libstdc++
>Synopsis: iostreams very slow compared with earlier gcc versions
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 19 05:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Morten Brix Pedersen
>Release: gcc-3.1
>Organization:
>Environment:
>Description:
'cout' is very slow in g++ 3.1 compared with g++ 2.95.4 (Debian prerelease).
My results with 'time', gcc 2.95.4:
mbp:~/testcode$ time ./stream > /dev/null
real 0m1.886s
user 0m0.940s
sys 0m0.000s
My results with gcc 3.1.0:
mbp:~/testcode$ time ./stream-3.1 > /dev/null
real 0m37.636s
user 0m18.520s
sys 0m0.010s
>How-To-Repeat:
#include <iostream>
int main(int argc, char** argv)
{
for(int i=0; i< 1500000; i++)
std::cout << i << '\n';
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-20 18:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-20 18:28 libstdc++/7076: iostreams very slow compared with earlier gcc versions bkoz
-- strict thread matches above, loose matches on Subject: below --
2003-02-07 2:56 Joe Buck
2002-06-19 6:26 morten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).