Re: [Chicken-users] an oddly slow regex ...

2013-10-29 Thread J Altfas
FWIW, I tried the same regex in Tcl. Using tclsh, I entered at the prompt: % regexp -inline {[a-z][a-z0-9\\-_.]{0,20}} a012345678901234567890123456789 a01234567890123456789 It seemed to work fast, but to quantify execution time, the timed output of 10 iterations was 1.3823 microseconds

Re: [Chicken-users] an oddly slow regex ...

2013-10-27 Thread Alex Shinn
On Sun, Oct 27, 2013 at 3:38 AM, Peter Bex peter@xs4all.nl wrote: On Sat, Oct 26, 2013 at 10:37:36AM -0700, Matt Welland wrote: This regex is so slow that you don't need a timer to see the impact (at least not on my machine with chicken 4.8.0): (string-match [a-z][a-z0-9\\-_.]{0,20}

[Chicken-users] an oddly slow regex ...

2013-10-26 Thread Matt Welland
This regex is so slow that you don't need a timer to see the impact (at least not on my machine with chicken 4.8.0): (string-match [a-z][a-z0-9\\-_.]{0,20} a012345678901234567890123456789) Changing the {0,20} to + makes it run normally fast so I just replaced the regex with a string-length and

Re: [Chicken-users] an oddly slow regex ...

2013-10-26 Thread Matt Welland
On Sat, Oct 26, 2013 at 11:38 AM, Peter Bex peter@xs4all.nl wrote: On Sat, Oct 26, 2013 at 10:37:36AM -0700, Matt Welland wrote: This regex is so slow that you don't need a timer to see the impact (at least not on my machine with chicken 4.8.0): (string-match