My framework has a handfull of tags and functions (literally a
handful, less than 5) that manage file system access for one reason or
another... They all rely on a function to generate the path to the
target variable where information about a specific file and/or
directory is stored, so that file and directory reads can all be
cached, and so that any time a file is moved, deleted, created, etc.
the cache for the file and/or directory can be easily deleted to reset
the cache. The variable path is derived by a function to ensure that
all the tags/functions that manipulate file data use the same cache
and that if there's ever a reason to change the path it only needs to
be changed in one place.

Thread just got me thinking. :)

> Absolutely.  Filesystem access is always slow.  I'd
> probably read the
> directory once and store it in the application scope, and
> then just
> add a URL parameter that would allow regenerating it.
> Then it would
> never have to hit the filesystem unless you ask it to
> (after you
> publish something).

> cheers,
> barneyb

> On 6/23/05, B G <[EMAIL PROTECTED]> wrote:
>> 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.


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:210458
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