chickadee » objc » objc:optimize-callbacks

(objc:send/maybe-safe RECEIVER KEYWORD1 ARGUMENT1 ...)syntax
objc:optimize-callbacksparameter

Identical to objc:send/safe when the object or class (or any superclass) is implemented in Scheme, and to objc:send otherwise. In general, this greatly improves invocation time for pure Objective C classes and objects, has a negligible impact on Scheme classes, and incurs a 10% penalty for Scheme instances. This optimization can be disabled by setting the parameter objc:optimize-callbacks to #f---in which case a safe call will always be used.