This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [RFC] Notes on QUIT and STREQ et.al.
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [RFC] Notes on QUIT and STREQ et.al.
- From: jtc at redback dot com (J.T. Conklin)
- Date: 13 Mar 2000 12:06:48 -0800
- Cc: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- References: <38CCC819.1071F28E@cygnus.com>
- Reply-To: jtc at redback dot com
>>>>> "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