Need for speed

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kriemer
Pro Scripter
Posts: 57
Joined: Fri Oct 30, 2009 2:59 pm

Need for speed

Post by kriemer » Tue Nov 03, 2009 5:20 pm

I am planning on using WorkFlow Designer as a documentation/Presentation tool for macro development. Not wanting to slow down the execution of my macros I was wondering about best techniques.

I note that I can import previously saved macros into a single "Action Block" of a new macro. This would allow me to repeatably reuse typical archetype macros without reentering code. Does this technique slow down or impact on macro stability?

Thanks

k

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Nov 03, 2009 8:01 pm

For code re-use just use the Include command. So the action block could simply be:

Include>existingscriptfile.scp

The code within the action block will run at the same speed as it would run inside Macro Scheduler.

The only difference is between blocks where in Workflow Designer there is by necessity a tiny, tiny delay introduced in order to show the process proceeding visually. Other than that there is no difference in speed.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

kriemer
Pro Scripter
Posts: 57
Joined: Fri Oct 30, 2009 2:59 pm

Post by kriemer » Tue Nov 03, 2009 8:24 pm

Two remaining questions then:

1- Will the macro still compile with the "Include>existingscriptfile.scp"
2- Is there any difference between "Include>XXX.scp" from "Macro>XXX.scp" in this case?

Thanks

k

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Nov 03, 2009 8:28 pm

1. Yes, you can compile statically or dynamically.
2. See: http://www.mjtnet.com/blog/2009/09/09/i ... ary-files/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts