GNU bug report logs - #17248
[PATCH] grep: waste of a lot of memory for a large pattern in dfamust

Previous Next

Package: grep;

Reported by: Norihiro Tanaka <noritnk <at> kcn.ne.jp>

Date: Sat, 12 Apr 2014 06:11:02 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17248 in the body.
You can then email your comments to 17248 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#17248; Package grep. (Sat, 12 Apr 2014 06:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Norihiro Tanaka <noritnk <at> kcn.ne.jp>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Sat, 12 Apr 2014 06:11:03 GMT) Full text and rfc822 format available.

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

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: bug-grep <at> gnu.org
Subject: [PATCH] grep: waste of a lot of memory for a large pattern in dfamust
Date: Sat, 12 Apr 2014 15:10:02 +0900
[Message part 1 (text/plain, inline)]
dfamust() uses a log of memory for long pattern.

  $ echo abc | grep -f /usr/share/dict/words

/usr/share/dict/words is about 5MB.  However, dfamust() will require
memory over 100MB.

Norihiro
[patch.txt (text/plain, attachment)]

Information forwarded to bug-grep <at> gnu.org:
bug#17248; Package grep. (Fri, 18 Apr 2014 15:05:04 GMT) Full text and rfc822 format available.

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

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: 17248 <at> debbugs.gnu.org
Subject: bug#17248: [PATCH] grep: waste of a lot of memory for a large pattern
 in dfamust
Date: Sat, 19 Apr 2014 00:04:30 +0900
[Message part 1 (text/plain, inline)]
I rebased this patch because of confliction.
[patch.txt (text/plain, attachment)]

Information forwarded to bug-grep <at> gnu.org:
bug#17248; Package grep. (Sun, 20 Apr 2014 01:00:05 GMT) Full text and rfc822 format available.

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

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: 17248 <at> debbugs.gnu.org
Subject: bug#17248: [PATCH] grep: waste of a lot of memory for a large pattern
 in dfamust
Date: Sun, 20 Apr 2014 09:59:24 +0900
[Message part 1 (text/plain, inline)]
Norihiro Tanaka wrote:
> I rebased this patch because of confliction.

I fixed the degration in rebase.
[patch.txt (text/plain, attachment)]

Information forwarded to bug-grep <at> gnu.org:
bug#17248; Package grep. (Mon, 21 Apr 2014 23:10:02 GMT) Full text and rfc822 format available.

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

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: 17248 <at> debbugs.gnu.org
Subject: bug#17248: [PATCH] grep: waste of a lot of memory for a large pattern
 in dfamust
Date: Tue, 22 Apr 2014 08:08:57 +0900
[Message part 1 (text/plain, inline)]
I rebased this patch because of confliction again.
[patch.txt (text/plain, attachment)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Thu, 24 Apr 2014 16:47:02 GMT) Full text and rfc822 format available.

Notification sent to Norihiro Tanaka <noritnk <at> kcn.ne.jp>:
bug acknowledged by developer. (Thu, 24 Apr 2014 16:47:03 GMT) Full text and rfc822 format available.

Message #19 received at 17248-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>, 17248-done <at> debbugs.gnu.org
Subject: Re: bug#17248: [PATCH] grep: waste of a lot of memory for a large
 pattern in dfamust
Date: Thu, 24 Apr 2014 09:46:48 -0700
[Message part 1 (text/plain, inline)]
Thanks, I installed that, and followed it up with the attached minor 
cleanup patch.

[0001-dfa-minor-tuneup-of-dfamust-memory-savings-patch.patch (text/x-patch, attachment)]

Information forwarded to bug-grep <at> gnu.org:
bug#17248; Package grep. (Sat, 10 May 2014 01:06:02 GMT) Full text and rfc822 format available.

Message #22 received at 17248-done <at> debbugs.gnu.org (full text, mbox):

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 17248-done <at> debbugs.gnu.org
Subject: Re: bug#17248: [PATCH] grep: waste of a lot of memory for a large
 pattern in dfamust
Date: Sat, 10 May 2014 10:05:30 +0900
[Message part 1 (text/plain, inline)]
I have added a /* fallthrough */ comment, Jim works so in bug#17350.
[0001-maint-mark-a-breakless-case-with-fallthrough-comment.patch (text/plain, attachment)]

Information forwarded to bug-grep <at> gnu.org:
bug#17248; Package grep. (Sat, 10 May 2014 01:47:02 GMT) Full text and rfc822 format available.

Message #25 received at 17248-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
Cc: 17248-done <at> debbugs.gnu.org
Subject: Re: bug#17248: [PATCH] grep: waste of a lot of memory for a large
 pattern in dfamust
Date: Fri, 09 May 2014 18:46:38 -0700
Norihiro Tanaka wrote:
>             assert (!"neither LPAREN nor RPAREN may appear here");
> +          /* fallthrough */

That doesn't fall through, as the 'assert' never returns.




Information forwarded to bug-grep <at> gnu.org:
bug#17248; Package grep. (Sat, 10 May 2014 03:04:02 GMT) Full text and rfc822 format available.

Message #28 received at 17248-done <at> debbugs.gnu.org (full text, mbox):

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 17248-done <at> debbugs.gnu.org
Subject: Re: bug#17248: [PATCH] grep: waste of a lot of memory for a large
 pattern in dfamust
Date: Sat, 10 May 2014 12:03:46 +0900
Paul Eggert wrote:
> That doesn't fall through, as the 'assert' never returns.

Oh!  Thanks, I understood it.






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 07 Jun 2014 11:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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