This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2006 04:01:17 -0000
- Subject: [Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)
- References: <bug-28364-37@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from pinskia at gcc dot gnu dot org 2006-07-13 04:01 -------
If this is really a program's inner most loop, then the program is messed up as
there is no caculation going on here at all.
What type of program is this? Do you cache the result of this function? Maybe
chaching the results will show other bottle necks. Maybe even instead of doing
this loop, find another loop which loops over the text and also process it at
the same time. These are normal optimization tricks which usuaully cannot be
done by the compiler.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28364