Which is faster?
Anyone know whether it is faster to get text information from a field, a custom property or returning the result directly from a function sush as: function returnValue return "Hello" end returnValue I assume the text-in-field is the fastest, but I often have to decide between storing values in functions or as custom properties. Though I love custom properties they can be less readable in the present environment as you have to look at the script and the custom properties dialog to figure out what is going on. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Which is faster?
On 21/9/00 8:48 am, David Bovill [EMAIL PROTECTED] wrote: Anyone know whether it is faster to get text information from a field, a custom property or returning the result directly from a function sush as: function returnValue return "Hello" end returnValue I assume the text-in-field is the fastest, but I often have to decide between storing values in functions or as custom properties. Though I love custom properties they can be less readable in the present environment as you have to look at the script and the custom properties dialog to figure out what is going on. If lockMessages is true, then I believe a custom property will be fastest. If lockMessages is false, it depends on whether you have a getProp handler for the custom property, what is in that handler vs. where the chunk in the field is. There is an appreciable overhead in calling a function. Using a constant or variable is the fastest possible method, though its hard to measure a difference between using them and using a custom prop with lock messages. Regards, Kevin Kevin Miller [EMAIL PROTECTED] http://www.runrev.com/ Runtime Revolution Limited (formerly Cross Worlds Computing). Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Which is faster?
David Bovill wrote: Anyone know whether it is faster to get text information from a field, a custom property or returning the result directly from a function... To determine the fastest of two possible solutions, you might consider using our freeware MetaBench tool: ftp://ftp.fourthworld.com/MetaCard/4W_MetaBench.mc.sit.hqx -- Richard Gaskin Fourth World Media Corporation Multimedia Design and Development for Mac, Windows, UNIX, and the Web _ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 ICQ#60248349Fax: 323-225-0716 Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.
Re: Which is faster?
Will do Richard. From: Richard Gaskin [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 21 Sep 2000 09:34:23 -0700 To: [EMAIL PROTECTED] Subject: Re: Which is faster? David Bovill wrote: Anyone know whether it is faster to get text information from a field, a custom property or returning the result directly from a function... To determine the fastest of two possible solutions, you might consider using our freeware MetaBench tool: ftp://ftp.fourthworld.com/MetaCard/4W_MetaBench.mc.sit.hqx -- Richard Gaskin Fourth World Media Corporation Multimedia Design and Development for Mac, Windows, UNIX, and the Web _ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 ICQ#60248349Fax: 323-225-0716 Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to [EMAIL PROTECTED], not this list.