This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/8761: poor fstream performance
- From: wj178839 at wp dot pl
- To: gcc-gnats at gcc dot gnu dot org
- Date: 30 Nov 2002 00:23:16 -0000
- Subject: libstdc++/8761: poor fstream performance
- Reply-to: wj178839 at wp dot pl
>Number: 8761
>Category: libstdc++
>Synopsis: poor fstream performance
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Fri Nov 29 16:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: wj178839@wp.pl
>Release: 3.2
>Organization:
>Environment:
Hardware: Intel P3 600Mz, 192MB
OS: Debian Woody 3.0
Compiling options: --enable-languages=c,c++
>Description:
Code using streams executes very slowly (3 times at my P3 600Mhz). No optimization flags helped (I tried -O3 -O2 -O0).
>How-To-Repeat:
#include <fstream>
int main() {
std::ofstream out("foo.txt");
for(int i=0;i<10000000;++i)
out << i << "\n";
};
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: