|
“it demonstrates a lack of understanding of the features of the language”
I don’t like this point (and I’m really not trying to single out Brian at all – this is just the point where I felt like chiming into the conversation). Yes evaluate() is slow, but because someone uses “feature A” instead of “feature B” of a language, I disagree that it always is because of a lack of understanding of features.
I’ve written apps in the past, and in keeping with the “make it work now, make it fast later” ideals (which sometimes have to be followed, depending on your work environment and schedule…Doug are you out there? Back me up here! :) ), I will write code in the first way I can think of that gets the job done. Sometimes things are out of my control, and I _have_ to wait for version 2 before I can go in and remove calls to evaluate(), and other poorly/quickly written sections of code. And if I’m writing a library that I need to get _working_ now, I know there are spots that I’ve used evaluate() to get something done.
Everything has it’s place…
.02 -nolan
Nolan Erck -----Original Message-----
The
point is that in virtually all cases: On 5/18/06, Roland Collins <[EMAIL PROTECTED]> wrote: Resent without the "SPAM" flags ;)
I've actually posted metrics on this before – and you're pretty much right. The performance penalties of using evaluate are trivial at best, and often times non-existent. The metrics below demonstrate that, given server conditions, the evaluate code can even perform faster than inline code Anyway, it's *very* clear from the results that the overhead of evaluate is largely over-hyped. Also, attached are the two test files I used to generate the metrics.
Roland
From: [EMAIL PROTECTED]
[mailto:
[EMAIL PROTECTED]] On Behalf Of Brian
Rinaldi
I only recently
started watching this thread, but this seems to me that the "avoid
evaluate()" rule generally doesn't have much documented justification
(though I am not arguing that it isn't valid - just that I have rarely seen much
documentation on the differences - if I missed some earlier in this thread I
apologize in advance). The ColdFusion MX Coding Guidlines only says the
following under Performance "Don'ts": From: "Nick Tong - TalkWebSolutions.co.uk"
< [EMAIL PROTECTED]> ----------------------------------------------------------
The information contained in this e-mail is confidential and may contain privileged information exempt from disclosure under applicable law. The information is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, employee, or agent responsible to deliver it to the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please delete the message from your computer and immediately notify the sender by telephone (you may call collect) at 916-569-5400 or by e-mail to [EMAIL PROTECTED] Thank you.
---------------------------------------------------------- | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- RE: [CFCDev] CFINVOKE vs. Evaluate Ben Nadel
- Re: [CFCDev] CFINVOKE vs. Evaluate Aaron Rouse
- Re: [CFCDev] CFINVOKE vs. Evaluate Jim Flannery
- RE: [CFCDev] CFINVOKE vs. Evaluate Ben Nadel
- Re: [CFCDev] CFINVOKE vs. Evaluate Brian Rinaldi
- Re: [CFCDev] CFINVOKE vs. Evaluate Steve Bryant
- RE: [CFCDev] CFINVOKE vs. Evaluate Phillip Senn
- RE: [CFCDev] CFINVOKE vs. Evaluate Chris Townsend
- Re: [CFCDev] CFINVOKE vs. Evaluate Brian Kotek
- Re: [CFCDev] CFINVOKE vs. Evaluate Brian Rinaldi
- RE: [CFCDev] CFINVOKE vs. Evaluate Nolan Erck
- Re: [CFCDev] CFINVOKE vs. Evaluate Brian Kotek
- Re: [CFCDev] CFINVOKE vs. Evaluate Aaron Rouse
- Re: [CFCDev] CFINVOKE vs. Evaluate Brian Kotek
- RE: [CFCDev] CFINVOKE vs. Evaluate Lyons, Larry
- RE: [CFCDev] CFINVOKE vs. Evaluate Mihai Manuta
- Re: [CFCDev] CFINVOKE vs. Evaluate Chris Scott
- Re: [CFCDev] CFINVOKE vs. Evaluate Aaron Rouse
