This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]