At 09:30 AM 3/21/2014, Bill Downall wrote:

Tony is right, that the IF/GOTO constructs can be dangerous ...


Excellent point, Bill!

FWIW ...

For repetitive code, WHILE loops are faster than GOTO and LABEL commands.
The WHILE loop code is read into memory and parsed before execution begins.

R:BASE does not do line-by-line reading and parsing the code for each
iteration of the WHILE loop. As it is read into memory, the WHILE loop
code is parsed in tokens (4-byte segments), but R:BASE still parses the
expressions and finds variable names and values, etc. for each row.

WHILE loops are not faster if the section of code is just being processed
once. Do not put entire command files inside WHILE loops to try and gain
performance. If the code is not being processed more than once, you may
actually slow it down. In addition, WHILE loops are stored in memory. Do
not create unnecessary WHILE loops that use memory needed for other
processing.

For more details and examples ...

From The Edge: www.Razzak.com/FTE
Topic: Gaining Speed with Programming in R:BASE eXtreme 9.5

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase
--
31 years of continuous innovation!
16 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, place any text to search for.
================================================


Reply via email to