GNU bug report logs - #16232
[PATCH] grep: make --ignore-case (-i) faster (sometimes 10x) in multibyte locales

Previous Next

Package: grep;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Mon, 23 Dec 2013 22:40:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #59 received at 16232 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 16232 <16232 <at> debbugs.gnu.org>, Padraig Brady <P <at> draigbrady.com>,
 Norihiro Tanaka <noritnk <at> kcn.ne.jp>
Subject: Re: bug#16232: [PATCH] grep: make --ignore-case (-i) faster
 (sometimes 10x) in multibyte locales
Date: Wed, 19 Feb 2014 11:51:27 -0800
On Wed, Feb 19, 2014 at 10:30 AM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> While we're on the topic, can someone please say why that patch was done as
> a preprocessor for the regex code?  I normally would think that the way to
> speed up regex processing is to improve dfa.c and/or the regex library, as
> that should speed up all programs that use these modules, not just grep.

Hi Paul,
My patch was a first crack at dealing with an inefficiency that was
grep-specific, so it made sense to apply as a grep-specific preprocessing
phase.  Norihiro found an additional improvement, that, it so happens,
would have had an even bigger impact if my patch had not been applied first.




This bug report was last modified 11 years and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.