From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24210 invoked by alias); 25 Jun 2014 16:40:49 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 24160 invoked by uid 55); 25 Jun 2014 16:40:45 -0000 From: "neleai at seznam dot cz" To: glibc-bugs@sourceware.org Subject: [Bug libc/17087] Implement memcasemem() Date: Wed, 25 Jun 2014 16:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: neleai at seznam dot cz X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01579.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17087 --- Comment #1 from Ondrej Bilka --- 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. -- You are receiving this mail because: You are on the CC list for the bug.