> Ben Forta explained this in a CFUG a couple years or so back.
> He said that it was more efficient to have CFOUTPUTS around
> each variable output rather than the entire page because
> otherwise, the CF server looks at EVERY character from top to
> bottom of your page looking for a # and then it's end #.
>
> That same year, I attended a class with Steve Drucker and his
> explanation of that same issue was that it is more efficient
> for wrap your entire page in one single OUTPUT tab because
> the CF server did not have to sort through many CFOUTPUT requests.
>
> My money is on Forta. but, I would like to see a stress test
> that proved one way or the other.

Good luck with that.

Unfortunately, the problem with a lot of these sorts of "which is faster"
questions is that there is no single correct answer. The effectiveness of
replacing multiple individual CFOUTPUT blocks with a single larger CFOUTPUT
block will depend on the number and placing of those blocks originally. In
my load-testing experience, I've never seen a coherent pattern of one
approach being generally better than the other.

In any case, the difference will usually be insignificant. If you have time
to investigate this sort of thing, it would probably be time better spent on
more useful optimization - database access and caching being at the top of
the list.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to