This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/14078] Manipulators are slow
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2004 17:09:45 -0000
- Subject: [Bug libstdc++/14078] Manipulators are slow
- References: <20040209093043.14078.peturr02@ru.is>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From peturr02 at ru dot is 2004-02-09 17:09 -------
> IMHO, we should only do that if it does not increase code size;
If the compiler where really smart,
os << uppercase;
should be inlined to
os._M_flags |= ios_base::uppercase;
Which should result in both smaller code and faster execution than what
happens currently.
(Currently, the compiler is unable to inline calls through function pointers,
even if the pointee is known at compile time. There is already a report about
this, it's PR3713.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14078