> >> One takes longer to type than the other. :o)
> 
> LOL! Which one?

Well... let's see..

Say I can type 60 words a minute... and we'll assume that 
- a word has an average of 5 letters
- there is a space between each word
- every 5 words there is a full stop.

That would mean I've typed approximatley:
(5 * 60) + (60) + (((5 * 60) + (60* 1))/5) = 432 words per minute.

However, if we are dealing with a per character basis, I would need to say:
1 min = 432 char
therefore 
60 seconds = 432 char
1 char = 60/432 seconds 
1 char = 0.139 seconds..

Now looking at:
<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>

That's 54 characters (not counting trailing spaces, or tabs) - so that would take me:
54 * (60/432) = 7.5 seconds.

But looking at:
<cfset CurrentPage=CGI.SCRIPT_NAME>

That's 35 characters so that would take me
35 * (60/432) = 4.86 seconds.

Now assuming we don't start using cfscript, or have a snippet lying around, I would 
say using 
<cfset CurrentPage=CGI.SCRIPT_NAME> is faster to type. :o)

As per which one takes longer?

It really doesn't matter does it ;o) which is easier for you to use?

It's not like you're going to be calling it several thousand times... (or are you? and 
if so... why 
would you do that?)

If you really want to know - build a test harness, and loop over it 10,000 times, and 
time the 
results :o)

Should be interesting all around ;o)

(Yeah, yeah.. it's friday.. i felt like going off on a tangent for a while)

:oD

Mark

------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to