07-17-2009, 08:05 AM
Speed and memory depends on how arguments are declared. If by value (TYPE'x), x is copied. If x is string or array, whole string/array data is copied. It is slower. If by reference (TYPE&x), only address of the caller's variable is passed. It is fast. But speed and memory is important only if the function will be called frequently or arguments will be large.
