03-13-2019 03:26 AM
Hello,
I have simple sequence that later runs on process model with pre&post step callbacks
When I execute this sequence without pre and post step callbacks it takes 2 sec to execute.
When I add pre and post step callbacks execution grows to 80 sec!
I have removed all code from callbacks but this overhead did not decrease,
is there anything that can be done or I should move this functionality from TS to module calls?
Thanks!
03-13-2019 01:53 PM
When you are executing 200,000 steps I would expect this kind of overhead. One thing you can do is move the "step" sequence functionality to a different sequence file so that it won't execute the Pre and Post step code.
You have to understand that TestStand is a scripting language after all. Because of this there is overhead associated with tracking steps and engine movements, etc... If efficiency is vital then you should move the functionality into the code module. There is a true art to where to put your algorithmic code. Just depends on your needs.
Hope this helps,