ErosOlmi
10-02-2008, 23:41
ATTENTION: You need latest thinBasic preview version 1.6.0.1 installed in order to test thinCore.dll attached to this post.
_________________________________________________
Hi all.
Problem with functions having local variables (or parameters) is the necessity to allocate local storage when function start and free that storage when function ends. And this takes a lot execution time!
I think I was able to get some more speed in scripts containing functions that have either local variables or some parameter.
Some script examples to use for testing are:
\SampleScripts\General\Speed\Test_Speed2_Function_MultiParamsVsSingleUDT.tBasic
\SampleScripts\General\Speed\Test_Speed2_Function_WithLocals.tBasic
\SampleScripts\General\Speed\Test_Speed2_Function_WithParams.tBasic
Also many TBGL scripts having functions executed many times can benefit from this improve.
Thanks in advance for any spare time you will dedicate to those tests.
Eros
Attached file removed.
_________________________________________________
Hi all.
Problem with functions having local variables (or parameters) is the necessity to allocate local storage when function start and free that storage when function ends. And this takes a lot execution time!
I think I was able to get some more speed in scripts containing functions that have either local variables or some parameter.
Some script examples to use for testing are:
\SampleScripts\General\Speed\Test_Speed2_Function_MultiParamsVsSingleUDT.tBasic
\SampleScripts\General\Speed\Test_Speed2_Function_WithLocals.tBasic
\SampleScripts\General\Speed\Test_Speed2_Function_WithParams.tBasic
Also many TBGL scripts having functions executed many times can benefit from this improve.
Thanks in advance for any spare time you will dedicate to those tests.
Eros
Attached file removed.