This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


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

Re: [RFC] Notes on QUIT and STREQ et.al.


>>>>> "Andrew" == Andrew Cagney <ac131313@cygnus.com> writes:
Andrew> Look OK to everyone?

Fine with me.

In fact, I've wondered to myself whether the performance improvement
(or reduction, it's not clear that these types of optimizations will
pay off) justified the existance of the STR*() macros.  I suspect that
some of the assumptions have been invalidated since they were written.
Function call overhead isn't as bad on modern processors as it was on
the VAX and 68020, compilers can recognize str*() and emit their own
inline versions, etc.

Even if the testing the first character does have a modest performance
improvement, I'd rather that whenever a performance issue is found that
we spend the effort on algorithmic optimizations than micro-optimizing.

        --jtc

-- 
J.T. Conklin
RedBack Networks

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