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)
|