[thelist] output value

Scott Brady evolt at scottbrady.net
Thu Jan 23 11:07:01 CST 2003


---------- Original Message ----------------------------------
From: Morgan Kelsey <morgan at morgankelsey.com>

>er, no, that's wrong.
>you should hardly ever need to use Evaluate. its a performance dog, makes your
>code unreadable, and is usually uneccessary.

It's not "wrong".  If it works, that means it's probably not wrong.  There might be a better way, which is different.

For what it's worth, I just ran some tests with the only difference being using Evaluate versus your method with 200 form fields.  The performance hit difference was nonexistent on the first time running it and nonexistent thereafter (in fact, some times the Evaluate method ran faster). That was in CF5. In MX the results were even faster for both of them.

If you're using "Evaluate" 1000 times in a page, there might be a bigger hit, but I can't even fathom that occurring.

As far as it being more "readable" that's subjective. I find Evaluate to be more readable than that method, of course that's probably because I'm used to using Evaluate for this case.

Scott





More information about the thelist mailing list