Recently I changed from using INPUTCSV types over to RAF type of file manipulation (Yes Rod, I should have listened to you months ago).
When I made this changed I noticed a significate speed increase.
When debugging using PRINT statements in the mainwin, this obviously impacts quite considerably, for instance if you're reading from a file into the mainwin versus printing into a text editor or quicker still just reading into memory.
This got me to wondering whether there are any further overheads I could use to save time. My program fires on a Timer every 100 ticks, so it's important for me to do everything quickly so it's ready to fire into the Timer again and not be stuck half way through an operation.
I seem to remember quite a few years ago there was a thread on the old forum about SELECT CASE verses IF THEN, having a slight boost but nothing major.
But what about concatenation of IF THENs, Is it quicker to have multiple IF AND OR on a single line or better to have 3 IF THEN statements spread across 3 lines.
For example
control = 1 :control2 = 0
a = 1 : b = 2 : c = 3
IF a = control OR b = control and control2 = 1 then print "works"
end
Then that leads onto FOR..NEXT versus WHILE..WEND or even DO (never seen that used yet!), I note the FOR loops seem quite time intensive.
I have run a few tests, but nothing that shows a marked improvement.
So wondered if anyone else had noted any significant differences or whether you have a preferred method.