>
>
> <cfif variables._modelGlue.configuration.debug EQ "none">
>  <cfreturn />
> </cfif>
>
> Please let us know how the performance of this code compares to the other
> two approaches.
>
>
Well, my completely unscientific approach, just involved pasting that code
in Dennis ahead of my other code, and then counting in my head as I tried
various pages and load times.  Of course pages didn't load in the exact same
time each time, but mostly they did.  On average, the above snippet loads
maybe a half second slower than just checking an already set true/false
value.

As to the default approach, IE no IF statement in the addTraceStatement()...

I wrote the above before testing it, my server speed just increased
incredibly and default was faster, so I had to re-run the other tests.
Perhaps caching plays a part in these results, so they may not be the best
tests.

The default is normally like a 10 second load, and with either of the if
statements, they are 2-5 second loads, though mostly 2-3.  I'll have to try
again when my application times out and a new load is required.

Another interesting caveat, is if an array is passed to this, arrays are
pass by value, not reference, so a copy of all the objects in the array is
done before the array is received.  That would slow things down too, even
with a switch to not process the array once received.
-- 
Chuck Savage
http://SeaRisen.com
-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to