From: Florian Weimer <fw@deneb.enyo.de>
To: git@vger.kernel.org
Subject: Re: weird strncmp usage?
Date: Fri, 03 Nov 2006 22:05:15 +0100 [thread overview]
Message-ID: <8764dwb5ro.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <45494D84.2060402@shadowen.org> (Andy Whitcroft's message of "Thu, 02 Nov 2006 01:44:36 +0000")
* Andy Whitcroft:
> If you are doing these a _lot_ then there is a significant additional
> cost to using strlen on a constant string.
strlen has been a GCC builtin for quite some time. If the wrapper
function is inlined, GCC will optimize it away. (It also turns the
prev parent reply other threads:[~2006-11-03 21:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-02 1:26 weird strncmp usage? Han-Wen Nienhuys
2006-11-02 1:44 ` Andy Whitcroft
2006-11-02 6:51 ` Jeff King
2006-11-02 9:15 ` Johannes Schindelin
2006-11-02 9:59 ` Han-Wen Nienhuys
2006-11-02 11:04 ` Petr Baudis
2006-11-03 21:05 ` Florian Weimer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8764dwb5ro.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).