This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/8761: poor fstream performance


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]