Not really.  In my tests it took about 3.5 times longer to run this

<cfif fileExists()>

than it did to run this:

<cfif x IS 1>

So you shouldn't worry about it.  My mediocre machine will still run about 6
<cfif fileExists()> per millisecond.


 

Bryan Love Macromedia Certified Professional
Internet Application Developer / Database Analyst
Telecommunication Systems Inc.
[EMAIL PROTECTED]
 

"...'If there must be trouble, let it be in my day, that my child may have
peace;' and this single reflection, well applied, is sufficient to awaken
every man to duty"
        - Thomas Paine, The American Crisis



-----Original Message-----
From: Brook Davies [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 1:11 PM
To: CF-Talk
Subject: is fileexists slow?


Is <cffileexists> slow, or processor/file system intensive?

Would it be unwise to have a <cffileexists> on a template which is called 
frequently? I could create a flag in the db indicating that a file exists 
as an alternative. But is it necessary? Would a large number of 
<fileexists> calls cause a drag on  the file system? Or is it relatively
fast?

Thanks for the insights!

Brook


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to