bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17025: [PATCH] grep: matching line-by-line with regex


From: Norihiro Tanaka
Subject: bug#17025: [PATCH] grep: matching line-by-line with regex
Date: Mon, 17 Mar 2014 23:49:20 +0900

Package: grep
Tags: patch

I ran following test, which used the regex enging in non-UTF8 locale.

$ yes abcd.abc | head -10000 > m
$ time -p env LC_ALL=ja_JP.eucJP src/grep abcd.abd m
real 7.28
user 6.36
sys 0.57

It's extremally slow.  When regex engine is used in grep, a text is
splitted by line.  However all of buffer is passed to re_search and
re_match.  I seem that it's wrong.

Norihiro

Attachment: patch1.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]