This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: Optimzed vs. readable code


Pierre THIERRY <nowhere.man@levallois.eu.org> writes:

| Scribit caj@cs.york.ac.uk dies 30/11/2005 hora 16:53:
| > > The thing is, in CS courses on compilation, one can learn that it is
| > > nowadays a so classic optimization that one can safely expect it
| > > from any decent compiler.
| > Really? It is trivial in the case of a pointer, or say a
| > vector::iterator, which is just a thin wrapper over a pointer. I
| > expect it gets much harder for types with more complex iterators.
| 
| I don't see the point. I repeat: i would not have even proposed the
| modification if I wasn't expecting any decent compiler to do the
| following optimization:

Not just because you'll repeat ad infinitum that you'll have people
change their mind.  They have tried to phrase their opinions in
"polite" way.  Also, different people have different expectations.  We
have to build not just on expectations.

-- Gaby


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