> I have a calendar app that calls the now() function many times =
> throughtout and format it differently using the day(), month() and so on =
> functions. I got a thought that it may be faster just to set the now() =
> value to a variable in the application.cfm so I dont have to =
> contininually call that function.=20
>
> Would this show any speed increase?
Continually referring to a system variable would be slower as it has to talk
to the OS... it'd be quicker again if you break it up into the parts in one
go, and then refer to those as well.
It's a minor increase in speed, but if you're expecting hundreds of
thousands of visitors per day, then it'd be worth it.
Oh, and put it into the Application scope, not just into a variable...
Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists