TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: TOM LAKE
date: 1998-03-26 16:56:00
subject: Re: Subs vs gosub:which i

From: "Tom Lake" 
Subject: Re: Subs vs gosub:which is faster
 
>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™.