1. call() question
- Posted by John Cage <drcage2000 at YAHOO.COM> Jan 27, 2001
- 526 views
Wich calling method is faster? This: foo() or this: atom foobar foobar = call_back(routine_id("foo")) call(foobar) Just woundering... Mike The Spike __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ ____________________________________________________________ T O P I C A -- Learn More. Surf Less. Newsletters, Tips and Discussions on Topics You Choose. http://www.topica.com/partner/tag01
2. Re: call() question
- Posted by Michael Nelson <MichaelANelson at WORLDNET.ATT.NET> Jan 27, 2001
- 527 views
- Last edited Jan 28, 2001
------=_NextPart_000_008B_01C088A4.6FEA1600 charset="iso-8859-1" See attached benchmark program. Time varies slightly from run to run but on my machine using DOS Eu, I get 1.4 seconds for 10,000,000 direct procedure calls, compared to 2.1 seconds for 10,000,000 calls via routine_id(). [This is using routine-id as efficeintly as possible, as a predefined constant, preassigned variables about the same as constants, calculating routine_id() in the procedure call takes about 8 seconds.] -- Mike Nelson ----- Original Message ----- From: "John Cage" <drcage2000 at YAHOO.COM> To: <EUforum at topica.com> Sent: Saturday, January 27, 2001 4:26 PM Subject: call() question > Wich calling method is faster? > This: > > foo() > > or this: > > atom foobar > foobar = call_back(routine_id("foo")) > call(foobar) > > Just woundering... > > > Mike The Spike > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great prices. > http://auctions.yahoo.com/ > > ____________________________________________________________ > T O P I C A -- Learn More. Surf Less. > Newsletters, Tips and Discussions on Topics You Choose. > http://www.topica.com/partner/tag01 > > ____________________________________________________________ T O P I C A -- Learn More. Surf Less. Newsletters, Tips and Discussions on Topics You Choose. http://www.topica.com/partner/tag01 ------=_NextPart_000_008B_01C088A4.6FEA1600 name="Proctest.ex"