> > Yeah, get rid of them all - in this case as it's not in a string, you
> > don't need #s inside the CFSet
>
> Would it affect performance?
>
> I've become accustomed to wrapping my variables in # # when writing CF..

There is a performance hit, but very minor - I personally think that it's
ugly to read when like that

I've got some performance figures, if I can dig them out...
<Runs off to find documentation>

OK, these are figures I generated from running a variety of tests, many
times and averaging the results to get a realistic answer

With #s on the right of the equals, CF (seems) to run about 2-3% slower
With #s on both sides of the equals, CF (seems) to run about 3-4% slower
The more #s there are on the right, the more it slows down

On the average page this will make little or no difference, but on high
volume sites, this can effect the performance

Note that the test templates were done with scoping on all variables, even
the variables. ones

Performance tests done on a single processor PIII-600 machine with 128Mb RAM
running IIS4, CF 4.5.1, pcAnywhere, FTPServ-U and Anti-Virus software

Tests were done multiple times as the server is running 15 CF based sites
which were all running simultaneously to the tests, but during a low(ish)
traffic period

The data was written row by row into a SQL Server database on another
machine connected via a 100Mhz connection, but the times were written after
the template had completed it's run

Being clever (sarcasm here) I over-wrote my test templates with other tests,
so I can't provide the actual code I used

Philip Arnold
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.
**********************************************************************


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to