[cl-ppcre-devel] cl-ppcre speedup
Edi Weitz
edi at agharta.de
Wed Dec 15 08:12:48 UTC 2004
Hi Alan!
On Wed, 15 Dec 2004 01:13:56 -0500, Alan Ruttenberg <alanr-l at mumble.net> wrote:
> I was profiling the following expression
>
> (cl-ppcre::scan "(\\S+)\\s*(.*)" "DE Halobacterium halobium
> ribosomal proteins, partial and complete")
>
> and char=, char/= and char<= were coming up highest in the breakdown.
>
> One way to conservatively fix (least number of edits to the source)
> would be the following, which gets about a factor of 2x for the
> above expression. Arguably, this might be considered for inclusion
> in openmcl proper.
>
> Similar could be done for char-equal etc.
That's an impressive speedup for such a few lines of code but I agree
with you that this should be actually included into OpenMCL. I
hesitate to add stuff to CL-PPCRE that's so specific to one
implementation.
Thanks,
Edi.
More information about the Cl-ppcre-devel
mailing list