> Thanks to you both.  This may be academic, but reducing
> CFDIR calls to as
> few as possible would be prudent, no?  On a small scale
> performance may not
> suffer, but accessing the HDD can quickly create lag as
> file sizes and
> numbers grow.

Well yeah... I just wasn't taking the time to address it. :)

Incidentally, if you just need to get an alphabetic list of the files
in a given directory, it's _MUCH_ more efficient to use

ListSort(createObject("java","java.io.File").init("mydirectory").list(
),"textnocase")

and of course you can parameterize either this or the directory into
an application or other persistent variable... except even if you
don't use cfdirectory, you can't use <cfparam> and still get the
performance improvement because the function in the default attribute
of the cfparam tag executes before the cfparam tag executes, so you
have to use this instead

<cflock scope="application" type="readonly" timeout="10">
<cfif not structKeyExists(application,"myDirectoryList")>
.... get directory list ...
</cfif></cflock>


s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210456
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to