Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Macro formulas: same lines or separate? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
judetf
Senior Member
Senior Member


Joined: January 23 2008
Online Status: Offline
Posts: 234
Posted: March 06 2009 at 06:51 | IP Logged Quote judetf

I'm curious as to whether there is a significant difference between putting a series of formula commands together in one line of a macro, or splitting them into multiple lines.

A simple example would be a macro that does nothing more than turn on three different lights with ph_insteon commands. The macro could be one line (with all three ph_insteon commands joined together) or three separate lines.

Is there a significant processing difference (either from a PH point of view of an Insteon view)?

Thanks
jtf
Back to Top View judetf's Profile Search for other posts by judetf
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: March 06 2009 at 08:30 | IP Logged Quote BeachBum

I can’t imagine why there would be a significant difference except maybe in an I/O command that may change it's sequence on the queue. The routines that build from the script probably have to go through the same hoops and loops. I do 1 liners for simplicity. The only place serializing plays into it is in the Boolean field of triggers.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: March 06 2009 at 13:30 | IP Logged Quote jbbtex

Single lines also make debugging easier.

__________________
Brady

"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
Back to Top View jbbtex's Profile Search for other posts by jbbtex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum