TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: TIM SCHREINER
date: 1998-03-26 17:09:00
subject: Re: Subs vs gosub:which i

From: Tim Schreiner 
Subject: Re: Subs vs gosub:which is faster
 
Tom
 
I believe Ethan Winer has done extensive benchmarking, and his results
parallel your statements.
 
Tim
 
 
Tom Lake wrote:
>
> >but which will execute faster?I heard that gosub was faster but having to
> >set the varibles must take a few cycles or so a piece,but im sure there is
> >some stuff involved in the varibles used by the sub as well.
> >which is faster?does anyone know?
>
> My benchmarks show GOSUB can be faster than CALL by a significant amount.
> SUBs can have overhead of local variables and the pushing and popping of
> arguments.
>
> Tom Lake
 
*** QwkNews (tm) v2.1
 * [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.