[Bug libstdc++/14078] Manipulators are slow
peturr02 at ru dot is
gcc-bugzilla@gcc.gnu.org
Mon Feb 9 17:09:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list