Hello.
I wrote a program which communicate with host computer via TCP/IP, receive commands and execute them. I noticed that AS execution is too slow. String operation (encode, val) are also too slow. Calling a subroutine with some args takes more than 10 milliseconds.
For example, code listed below prints 0.26. Whole 260 milliseconds, Karl, to convert int to string and call a subroutine!
Code
.PROGRAM my_sub.pc (.$arg)
IF .arg == "123" THEN
; do smth
ELSE
; do smth
END
.END
.PROGRAM main.pc
TIMER(1) = 0
CALL ($ENCODE(123))
.call_time = TIMER(1)
PRINT "Call time =", .call_time
.END
Display More
I found a solution to speed up a bit: TRACE OFF. I have tracing enabled for all programs!
Is there other methods to accelerate AS execution