Ross, I think this is an urban legend. My little test program indicates that in D3 the call @sub version is about 3 times slower than the direct call sub method. (I actually think the logic is the opposite of what you said, the @sub version resolves the cataloged subroutine in the md every time [it has to, as the "sub" variable in the @sub could change between calls]). In UV they are about the same.
/Scott Ballinger Pareto Corporation Edmonds WA USA 206 713 6006 On Tue, Aug 26, 2008 at 5:26 PM, Ross Ferris <[EMAIL PROTECTED]> wrote: > Just a quick (dumb?) question that will save me spending 5 minutes > writing a little test program (instead I'll spending 15 mins reading > responses .... BARGAIN!!) - and may also be useful for other listeners > ... > > In D3 for subroutines that are called "often" (either within a program, > or a system if you use common) then a construct like > > mysub = "mysub" > ... > ... > for I = 1 to lots > call @mysub > ... > next I > > turns out to be marginally faster than > > call mysub > > because the subroutine name is resolved via the MD once on the first > call, sub subsequent indirect calls are faster as they avoid the MD/VOC > lookup > > Does this hold true across U2? And/or do you get same sort of benefit > from global catalog? > > Ross Ferris > Stamina Software > Visage > Better by Design! > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
