GNU bug report logs - #51231
increase performance and usability of binary search with -P

Previous Next

Package: grep;

Reported by: Carlo Arenas <carenas <at> gmail.com>

Date: Sat, 16 Oct 2021 01:29:02 UTC

Severity: normal

Tags: notabug

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

Bug is archived. No further changes may be made.

Full log


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

From: Carlo Arenas <carenas <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: increase performance and usability of binary search with -P
Date: Fri, 15 Oct 2021 17:33:59 -0700
[Message part 1 (text/plain, inline)]
The following patch increase performance of grep when looking at
binary data, without any side effects:

Summary
  'cd grep; ./src/grep -Pc foo
/Users/carlo/Downloads/FreeBSD-13.0-BETA2-amd64.vhd' ran
    1.77 ± 0.02 times faster than 'cd grep.base; ./src/grep -Pc foo
/Users/carlo/Downloads/FreeBSD-13.0-BETA2-amd64.vhd'

Carlo
[0001-pcre-only-match-UTF-8-if-needle-is-UTF-8-and-case-fo.patch (application/octet-stream, attachment)]

This bug report was last modified 3 years and 278 days ago.

Previous Next


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