Ross As others have said this was true for PRIME, which is why it is so often seen in legacy code, but is not the case for UniVerse. More useful is the fact that UniVerse caches subroutine object in memory until you exit to TCL, so the overheads on repeated calling are minimised anyway.
Brian > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ross Ferris > Sent: 27 August 2008 01:27 > To: [email protected] > Subject: [U2] call mysub vs. call @mysub > > 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/
