On Tue, Oct 25, 2022 at 7:30 PM Daryl Tester < [email protected]> wrote:
> On 26/10/22 12:02, Will Senn wrote: > > > ... but in the meantime, is there a trick to fast output I'm missing? > > Something that may help, (from memory) subroutine locations are scanned > linearly from the start of the > program, so a simple trick is to put your frequently called subroutines at > the start of the program > with the first statement being a goto to jump past them (and of course, > the subroutines ordered in > the most frequently called order). > I've heard this rumor, too. But, like the idea of replacing REM with a single apostrophe, I think it actually would make things slower. In that "10 GOTO 10 doesn't go to 10" code I posted a bit ago, I actually discovered that GOTO starts searching at the next program line after the current one and then loops around if necessary. I would imagine that GOSUB would do the same. —b9
