Re: Primitive benchmark comparison (parsing LDIF)

2021-10-28 Thread Norman Gaywood
On Fri, 29 Oct 2021 at 09:14, Norman Gaywood wrote: > > Might have to test this example again on 2021.10 (not easy for me). > I mean, test again on 2021.9 to see if there was a regex speed up in 2021.10 -- Norman Gaywood, Computer Systems Officer School of Science and Technology University of

Re: Primitive benchmark comparison (parsing LDIF)

2021-10-28 Thread Norman Gaywood
On Fri, 29 Oct 2021 at 00:46, yary wrote: > A small thing to begin with in the regex m/ ^ (@attributes) ':' \s (.+) > $ /; > m/ ^ (@attributes) ': ' (.*) $ /; > Yes, nice cleanup. Thanks. > Next, how about adding a 2nd regex test similar to the "split" that also > relies on User ignoring unkn

Re: Primitive benchmark comparison (parsing LDIF)

2021-10-28 Thread yary
A small thing to begin with in the regex m/ ^ (@attributes) ':' \s (.+) $ /; All the string examples use the literal ': ' colon+space, so how about making the regex more consistent? And also allowing the empty string as a value, which the string examples allow. m/ ^ (@attributes) ': ' (.*) $ /;

Re: Primitive benchmark comparison (parsing LDIF)

2021-10-27 Thread Norman Gaywood
Oh, and I welcome suggestions on how I might do the task more quickly, elegantly, differently, etc :-) And critiques of the code also welcome. I still have a strong perl5 accent I suspect. On Thu, 28 Oct 2021 at 13:15, Norman Gaywood wrote: > Executive summary: > - comparing raku 2021.10 wi