public static function optimize(string $key, string $typeName, string $optimizedType): void
    {
        self::$replacements[$typeName][$key] = $optimizedType;
    }
public static function optimize(string $key, string $typeName, string $optimizedType): void
    {
        self::$replacements[$typeName][$key] = $optimizedType;
    }
public static function optimize ( string $ key , string $ typeName , string $ optimizedType ) : void { self :: $ replacements [ $ typeName ] [ $ key ] = $ optimizedType ; }
Register an optimized version of a class.

@param string $key Name being used to activate the optimization in KOOLKODE_ASYNC_OPTIMIZATIONS.
@param string $typeName Name of the class to be replaced.
@param string $optimizedType Name of the optimized replacement class.
Register an optimized version of a class .