Something to add, TCFs methods are slower when you count the instantiation time. However, if you instantiate a tcf object in a domain or custom variable, so it doesn't need to be reinstantiated, the difference is negligable.

When you also think about code portability, the ability to easily port to other languages, or for prototyping, TMLs with TCF objects and methods is the best.

--

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/

On Mar 15, 2008, at 5:13 PM, Scott Cadillac wrote:

Hi Bill,

If speed is all a person is concerned about, with regards to witango code, then:

~ Caching is faster than not caching.

~ NOT compiling to "Runtime only" is faster than compiled.

~ Metatags are faster than Actions.

~ TML files are faster than TAF files.

~ A TAF or TML with Includes is slower than a file without any Includes.

~ Branches are faster than TCF Methods.

~ Lots of user scope variables are more expensive than lots of local scope variables.

These things are contrary to managing your code in an optimum way of course, but the reasoning can be summed up this way:

Most anything that makes a programmer's job easier, makes the code run slower.

Compiling to J2EE is an entirely different question, because it's no longer witango. Others can give you more advice with regards to J2EE than me, but I suspect J2EE is generally faster than witango.

Hope that helps.

Scott,



On Saturday, March 15, 2008 7:33pm, William M Conlon <[EMAIL PROTECTED]> said:

Has anyone run tests comparing the relative speed of a procedure when
implemented in actions as opposed to metatags in HTML Results?

I would be curious to see a comparison of these two approaches for:
Non-cached
cached
compiled.

To me, the action approach is more amenable to server-side speed-up,
especially when compiled for J2EE, but I would be curious to see the
difference.  My bias has been to use actions for most things related
to business logic, because I think it is easier to have the logic
exposed when I crack open an old or unfamiliar file.

But there are some corner cases, where I could go either way. And
there are some frequently-called methods that I would like to
optimize for speed.


Bill

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf



________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to