Gnus development mailing list
 help / color / mirror / Atom feed
From: Dale Hagglund <rdh@best.com>
Subject: Re: nnmail-split-header-length-limit is EVIL!
Date: 31 Mar 1999 23:02:31 -0800	[thread overview]
Message-ID: <86aewsu8l4.fsf@ponoka.battleriver.com> (raw)
In-Reply-To: Peter Seibel's message of "31 Mar 1999 18:54:48 -0800"

Peter Seibel <peter@javamonkey.com> writes:

> >>>>> "Dale" == Dale Hagglund <rdh@best.com> writes:
> 
>     Dale> I haven't seen any examples of complete regular
>     Dale> expressions that cause the problems we're talking about
>     Dale> here . . . .  Do we have any known regexp/string pairs
>     Dale> that deonstrate the problem?
> 
> Try eval'ing the expression below with the data line below it. It'll
> run quickly as is. Then add a's on the end of one or two at a time and
> watch it slow down.

> (search-forward-regexp "\\(.*\\)*x")
> 
> xaaaaaa
> 
> [A good description of the exponential backracking in the previous
> regexp and a pointer to Friedl's _Mastering Regular Expressions_
> deleted. --rdh] 

Umm, I've read Friedl's book (I agree it's excellent), and I already
understand the basic reason regexps show exponential time behaviour.

I guess I wasn't precise enough.  I was asking for known regexps from
gnus split processing and corresponding header lines that show
exponential behaviour, not a generic example that demonstrates how it
can happen on contrived input.

(I have no problems with your example as such; it nicely demonstrates
how easily exponential matching time can arise.  But, I'd like to see
a regexp/string pair with this problem that shows up in real use of
gnus.)

Dale.


  reply	other threads:[~1999-04-01  7:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-02 10:57 Hrvoje Niksic
1999-03-06 18:16 ` Lars Magne Ingebrigtsen
1999-03-07 13:27   ` Hrvoje Niksic
1999-03-14 15:53     ` Lars Magne Ingebrigtsen
1999-03-16  7:25       ` Hrvoje Niksic
1999-03-28 15:09         ` Lars Magne Ingebrigtsen
1999-03-29 20:20           ` Hans de Graaff
1999-04-02 14:03             ` Lars Magne Ingebrigtsen
1999-04-03  7:00               ` Hans de Graaff
1999-04-17  6:16                 ` Lars Magne Ingebrigtsen
1999-04-13  7:04               ` Hrvoje Niksic
1999-04-17  6:15                 ` Lars Magne Ingebrigtsen
1999-03-30  6:05           ` Dale Hagglund
1999-03-31  3:02             ` Greg Stark
1999-03-31  7:17               ` Dale Hagglund
1999-04-01  2:54                 ` Peter Seibel
1999-04-01  7:02                   ` Dale Hagglund [this message]
1999-04-01  7:13                     ` Peter Seibel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86aewsu8l4.fsf@ponoka.battleriver.com \
    --to=rdh@best.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).