the following code runs 2-3 times slower with the "register varibles" line in. any hints or ideas why??
(i am playing with this to try to speed up my pbasic code, as in math intensive routinrs it is only 4-5 times quicker than vb)
COMPILE EXE
#REGISTER NONE
FUNCTION PBMAIN
DIM i AS LONG , j AS LONG, k AS LONG
'optionally use..... Register i as long, j as long, k as long
FOR i = 1 TO 30000
FOR j = 1 TO 30000
k = 7
NEXT j
NEXT i
MSGBOX "Done"
END FUNCTION
(i am playing with this to try to speed up my pbasic code, as in math intensive routinrs it is only 4-5 times quicker than vb)
COMPILE EXE
#REGISTER NONE
FUNCTION PBMAIN
DIM i AS LONG , j AS LONG, k AS LONG
'optionally use..... Register i as long, j as long, k as long
FOR i = 1 TO 30000
FOR j = 1 TO 30000
k = 7
NEXT j
NEXT i
MSGBOX "Done"
END FUNCTION
Comment