Class methods vs MAC routines
Hello everyone,
I just want to know if there is a difference in performance between using Class methods versus MAC routines?
For example:
do Method^MyFunction()
versus
do ##class(MyFunction).Method()
Discussion (0)0
Comments
Class methods are recommended for use in all cases.
While classes provide an overhead, this is usually negligible.
Both MAC routines and class methods are compiled to INT routines, which are then compiled to OBJ (binary) code that is executed. To achieve better performance, try to make your code compact and efficient