Talk:READ
Run-time issues[edit source]
BASIC interpreter looks for DATA from the start of the program, if you have a large listing and need to read data often it can be quicker to have DATA lines first in the program.
This is hits only the very first read (after a RUN, CLR or RESTORE). Successive reads start from the current DATA pointer BASIC is maintaining. Even though the DATA lines resides at the end of the program this has no influence on further READ activities. But, to be clear, it has great influence for every GOTO or GOSUB which jumps to lower line numbers than the current one, where the line search starts from the beginning of the program text. The GOTOs and GOSUBs are subjected to time-penalties all the time if DATA lines are clustered around at the beginning program area. There is a lot more to gain if DATA lines are moved to the end of the whole program. --JohannKlasek (talk) 13:02, 31 August 2016 (CEST)
In BASIC using variable A (floating point) instead of A% (integer variable) is about 14% faster.
Nice statement, but does not hold in general. The percentage value is for sure just for a specific case, which is not clearly worked out. So I would rather omit this piece information with has no use whatever. --JohannKlasek (talk) 13:51, 31 August 2016 (CEST)