Posted: Tue Oct 22, 2002 2:22 pm
Restored from previous forum. Originally posted by MrVainSCL.
Hi Fred
Is there any speed different when calling a procedure and sharing only 1 or for example 5 or more variables/strings to the procedure?
And what happen (any speed different) when sharing 5 or more variables/strings but inside the procedure i need everytime only one of the shared stuff?
For example:
also is there any speed different to the next example...?
I think that more stuff will be shared (if not needed) if will slow down the innerloop a bit, isnt it? Because i heared that it make no different due fact of the compiler!?
Thanks in advance for any answer!
PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...
greetz
MrVainSCL! aka Thorsten
Hi Fred
Is there any speed different when calling a procedure and sharing only 1 or for example 5 or more variables/strings to the procedure?
And what happen (any speed different) when sharing 5 or more variables/strings but inside the procedure i need everytime only one of the shared stuff?
For example:
Code: Select all
Procedure TempTest(void)
Shared tmpa, tmpb, tmpc, tmpd, tmpe, stra$, strb$, strc$
;
tmpc = tmpc * 12 ; only tmpc is needed for example!
;
EndProcedure
also is there any speed different to the next example...?
Code: Select all
Procedure TempTest(void)
Shared tmpc
;
tmpc = tmpc * 12 ; only tmpc is needed for example!
;
EndProcedure
Thanks in advance for any answer!
PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...
greetz
MrVainSCL! aka Thorsten