Next: , Previous: , Up: CLOS   [Contents][Index]

2.23.5 Effective Method Precomputation

When a generic function is called, the generic function’s discriminating function computes the set of methods applicable to actual arguments and constructs an effective method function from applicable methods, using the generic function’s method combination.

Effective methods can be precomputed at method load time instead of when the generic function is called depending on the value of pcl:*max-emf-precomputation-methods*.

Variable: pcl:*max-emf-precomputation-methods*

If nonzero, the default value is 100, precompute effective methods when methods are loaded, and the method’s generic function has less than the specified number of methods.

If zero, compute effective methods only when the generic function is called.