Performance of Function Subprocedures
June 27, 2007 Ted Holt
Note: The code accompanying this article is available for download here. Last week, I wrote about performance issues when parameters are passed to subprocedures. This week, I write about a similar matter. If a subprocedure returns a value to the caller (i.e., the subprocedure serves as a function), the computer has to store the returned value somewhere in memory. The fact that the system must allocate memory for returned values means that performance may be affected. To test the performance of function subprocedures, I wrote two substring functions. The first one, SubString, works like the %SUBST built-in function |