This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: <iosfwd> also standard for std::string declaration?
- From: Martin Sebor <sebor at roguewave dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 17 Jun 2003 17:28:52 -0600
- Subject: Re: <iosfwd> also standard for std::string declaration?
- Organization: Rogue Wave Software, Inc.
- References: <20030617223204.83939.qmail@web13501.mail.yahoo.com>
landrum Alfred wrote:
No, the 300ms is stable, that's from taking 4-5 runs.
I'd guess that's not coming about from disk io, its
that the compiler has to go through 350k more source:
FWIW, with gcc 3.x we have also noticed am increase in compile
times. One of the reasons could be the compiler itself, but
another might also be the size and complexity of the libstdc++
headers. It might be interesting to compare the sizes of
translation units of various implementations. Here are the
results for Rogue Wave libstd 3.1.1 on SunOS 5.7, gcc 3.2 on
SunOS 5.7, STLport 4.5 on SunOS 5.7, and Dinkum C++ Standard
Library on AIX 5.1 with VAC++ 6.0 (after stripping blank lines
and lines beginning with the pound sign):
RW libstd libstdc++ STLport Dinkumware
=========== =========== =========== =========== ===========
algorithm : 3595 5689 4148 5566
bitset : 4250 17562 10254 8642
complex : 8992 18190 11230 10162
deque : 2262 4954 3069 5653
exception : 103 38 101 149
fstream : 8580 17506 10753 8567
functional: 562 427 626 433
iomanip : 4645 16967 9784 8187
ios : 5495 11776 6600 6776
iosfwd : 894 1155 1428 1334
iostream : 7489 16806 9689 8156
istream : 7474 16794 9674 8126
iterator : 1884 16894 9763 2185
limits : 285 758 1777 3177
list : 2250 4442 2487 5903
locale : 7914 14840 11287 9564
map : 2783 5418 2978 6213
memory : 1039 3823 2209 3888
new : 184 83 158 197
numeric : 396 17003 1110 2268
ostream : 6673 15577 7837 7411
queue : 6497 6367 4948 8693
set : 2713 5387 2956 6194
sstream : 7907 17191 10193 8706
stack : 2349 4990 3105 5722
stdexcept : 211 8676 2046 4471
streambuf : 4760 9914 6173 5863
string : 3901 8613 5306 8370
strstream : 7629 16885 9770 8257
typeinfo : 149 92 158 750
utility : 177 91 288 1405
valarray : 6643 19162 7367 3024
vector : 2399 4953 2994 5797
Regards
Martin