Bug#761157: grep -P is very slow on binary files

2021-11-24 Thread Vincent Lefevre
Control: found -1 3.7-1

On 2014-09-11 10:12:35 +0200, Vincent Lefevre wrote:
> Between grep 2.18-2 and grep 2.20-3 (fixing bug 758105), there is a
> huge slowdown when binary files (with invalid UTF-8 sequences) are
> involved. The timings on my personal svn working copy (with all my
> files), when searching for a word that doesn't exist (no matches):
> 
> grep 2.18-2:  0.9 s
> grep 2.20-3: 11.6 s
> 
> Note: the -P is useless in this case, but it is useful in other cases.

The current grep version 3.7-1 is also affected.

The upstream bug has been closed after the move to PCRE2.

Once the new grep is available in Debian, some tests need to be
done to see whether this change introduces any regression.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#761157: grep -P is very slow on binary files

2014-09-11 Thread Vincent Lefevre
Package: grep
Version: 2.20-3
Severity: important

Between grep 2.18-2 and grep 2.20-3 (fixing bug 758105), there is a
huge slowdown when binary files (with invalid UTF-8 sequences) are
involved. The timings on my personal svn working copy (with all my
files), when searching for a word that doesn't exist (no matches):

grep 2.18-2:  0.9 s
grep 2.20-3: 11.6 s

Note: the -P is useless in this case, but it is useful in other cases.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grep depends on:
ii  dpkg  1.17.13
ii  install-info  5.2.0.dfsg.1-4
ii  libc6 2.19-10
ii  libpcre3  1:8.35-3

grep recommends no packages.

grep suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org