I basically have this code where i call a procedure using the string output from another procedure. When i call DoSomething() in the following pseudo code the procedure for some reason runs very slow taking 10 seconds to finish. It also only happens with the ASM compiler, i switched to the c compiler and the bug was gone.
Code: Select all
Procedure.s GetString(ID.i)
Select ID
Case 1
ProcedureReturn "Hello"
Case 2
ProcedureReturn "World"
EndSelect
EndProcedure
Procedure DoSomething(String$)
;Processing really slow
Debug String$
EndProcedure
DoSomething(GetString(1))
Code: Select all
Procedure.s GetString(ID.i)
Select ID
Case 1
ProcedureReturn "Hello"
Case 2
ProcedureReturn "World"
EndSelect
EndProcedure
Procedure DoSomething(String$)
;Processing fast
Debug String$
EndProcedure
Result$ = GetString(1)
DoSomething(Result$)
Tested with PB 5.73 x64 and PB 6.00 x64