chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] irregex - a pathological case


From: Alex Shinn
Subject: Re: [Chicken-hackers] irregex - a pathological case
Date: Fri, 10 Feb 2012 08:11:54 +0900

Works fine for me on 4.7.0.  It's slow though (24s),
Peter's new match extraction code should improve
this greatly.  I hope to get that out soon.

-- 
Alex

On Thu, Feb 9, 2012 at 9:54 PM, Jörg F. Wittenberger
<address@hidden> wrote:
> I'm afraid I ran into a pathological case for irregex.
>
> For me this hangs in a tight loop:
>
> $ csi
>
> CHICKEN
> (c)2008-2011 The Chicken Team
> (c)2000-2007 Felix L. Winkelmann
> Version 4.7.4 (custom)
> linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
> compiled 2012-01-12 on ajax (Linux)
>
> #;1> (use irregex) ; loading /usr/lib/chicken/6/irregex.import.so ... ;
> loading library irregex ... #;2> (define m (irregex
> "https?://(?:([^:@]+)(?::(address@hidden))@)?([^:/]+)(?::([^/]+))?/(.*)")) 
> #;3>
> (irregex-match m
> "https://localhost:2143/Abb8999dd38524dcc113f977d378a9ee0?_v=a&sql=select+count%28*%29+--+r.s+as+s%2C+t.o+as+o%0D%0A++from+rdf_range+as+r%0D%0A++left+join+rdf_tc+as+tc+on+r.o+%3D+tc.o%0D%0A++left+join+literal+as+lsubc+on+lsubc.s+%3D+tc.p+and%0D%0A++++lsubc.v+%3D+%27http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23subClassOf%27%0D%0A++join+rdfnode+as+t+on+r.s+%3D+t.s+and+%28r.o+%3D+t.o+or+tc.s+%3D+t.o%29";)
>
>
> /Jörg
>
>
>
>
> _______________________________________________
> Chicken-hackers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-hackers



reply via email to

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