public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "Ondřej Bílka" <neleai@seznam.cz>
To: kenatmit at gmail dot com <sourceware-bugzilla@sourceware.org>
Cc: glibc-bugs@sourceware.org
Subject: Re: [Bug libc/17087] New: Implement memcasemem()
Date: Wed, 25 Jun 2014 16:40:00 -0000	[thread overview]
Message-ID: <20140625164007.GA15975@domone.podge> (raw)
In-Reply-To: <bug-17087-131@http.sourceware.org/bugzilla/>

On Wed, Jun 25, 2014 at 03:19:01PM +0000, kenatmit at gmail dot com wrote:
> 
> The of function strstr() has the case-insensitive version strcasestr(), but
> memmem() does not have the case-insensitive version memcasemem().
> 
> The memcasemem() version would be useful for optimizing some programs. For
> example Suricata intrustion prevetion and detection code.
> 
That would not help as optimization, a case conversion is more expensive
than detecting end condition and in vectorized implementations it is
faster to detect terminating null than add special casing if detected
byte was before or after end.


  reply	other threads:[~2014-06-25 16:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-25 15:19 kenatmit at gmail dot com
2014-06-25 16:40 ` Ondřej Bílka [this message]
2014-06-25 16:40 ` [Bug libc/17087] " neleai at seznam dot cz
2014-06-25 18:30 ` kenatmit at gmail dot com
2014-06-26  8:38 ` fweimer at redhat dot com
2015-08-27 22:22 ` [Bug string/17087] " jsm28 at gcc dot gnu.org
2016-10-24 17:55 ` joseph at codesourcery dot com

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=20140625164007.GA15975@domone.podge \
    --to=neleai@seznam.cz \
    --cc=glibc-bugs@sourceware.org \
    --cc=sourceware-bugzilla@sourceware.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 read-only IMAP folder(s) and NNTP newsgroup(s).