[cl-ppcre-devel] Re: freeze-type ing cl-ppcre?

Jim Prewett download at hpc.unm.edu
Mon Aug 23 13:36:46 UTC 2004



Hi Edi,

> I'm not familiar with FREEZE-TYPE. How did you use it and how did it
> improve CL-PPCRE? Is this new in 19a?

Apparently, yes it is new in 19a.  

I simply added the declaration:

(declaim (extensions:freeze-type regex seq alternation lookahead 
lookbehind repetition register standalone back-reference char-class str 
anchor everything word-boundary branch void))

* I just grepped for defclass to build this list of classes *

The CMUCL manual says this:

"The extensions:freeze-type declaration is a CMUCL extension that enables 
more efficient compilation of user-defined types by asserting that the 
definition is not going to change. This declaration may only be used 
globally (with declaim or proclaim). Currently freeze-type only affects 
structure type testing done by typep, typecase, etc."

My "benchmark" was really quick and dirty, so i'm not sure I trust the 
results.  :)  

Thanks Edi!,
Jim

-- 
James E. Prewett                 "everything that is, that was, was not enough"
Systems Team Leader                                                505.277.8210
Designated Security Officer                download at hpc.unm.edu Jim at Prewett.org
HPC Systems Engineer III @ HPC at UNM             OpenPGP key: pub  1024D/31816D93





More information about the Cl-ppcre-devel mailing list