[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: woz' original "brick out" - source code , paddles



BluPhoenyx wrote:

> There are several ways to improve Applesoft speed without resorting to
> assembly. Removing REM statements will help with both speed and size.
> How much depends on how many REM statements exist and where they are in
> the code.
> 
> Another useful trick is putting the most branched to lines at the front
> of the program. Again, how much speed is gained depends on the program
> and how much branching it uses.
> 
> Another minor trick is defining variables to ensure certain ones are
> listed early in the variable table. However, this usually doesn't apply
> to string variables. Yet again, this depends on the program.

One more: store all numbers that are used more than once in variables.
Parsing numerical constants is quite slow in Applesoft, compared to a
variable lookup.

-- 
Linards Ticmanis