g++ 3.3 I/O Performance

lrtaylor@micron.com lrtaylor@micron.com
Mon Dec 15 21:20:00 GMT 2003


Which version of GCC are you using (that is, 3.3.0, 3.3.1 or 3.3.2)?  >From what I understand, there was a bug report for that and it was supposed to have been fixed in 3.3.2, or is slated to be fixed soon.  It had to do with the I/O implementation calling a slow system function (something like snprintf or something).  Perhaps someone knows better than I, but I know it's definitely not fixed in 3.3.1 or earlier.

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]On
Behalf Of Torsten Reuss
Sent: Monday, December 15, 2003 2:08 PM
To: gcc-help@gcc.gnu.org
Subject: g++ 3.3 I/O Performance


Hi,

I'm wondering if anybody can help me on why g++-3.3 is about 80% slower
than g++-2.95.4 for an I/O intensive program I'm working on.

Now, before I go into the details, that's 80% slower with a call to
ios::sync_with_stdio(false) inserted already. Without that it was 5
times slower.



More information about the Gcc-help mailing list