[Openmcl-devel] Re: [cl-ppcre-devel] cl-ppcre speedup

Alan Ruttenberg alanr-l at mumble.net
Tue Dec 14 23:49:56 PST 2004


Actually, closer to a 3x speedup.

(DOTIMES (I 1000000) (CL-PPCRE:SCAN "(\\S+)\\s*(.*)" "DE   
Halobacterium halobium ribosomal proteins, partial and complete")) took 
14,655 milliseconds (14.655 seconds) to run.

vs.

(DOTIMES (I 1000000) (CL-PPCRE:SCAN "(\\S+)\\s*(.*)" "DE   
Halobacterium halobium ribosomal proteins, partial and complete")) took 
4,989 milliseconds (4.989 seconds) to run.

-Alan

On Dec 15, 2004, at 1:13 AM, Alan Ruttenberg 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.




More information about the Openmcl-devel mailing list