On Tue, Jul 8, 2008 at 9:41 AM, Dawson, Michael <[EMAIL PROTECTED]> wrote:
> Just curious...
>
> What made you think of doing that?

well, I realize that templates are compiled into class files, and
compiling class files is CPU intensive, so the class files get cached
- on disk and into memory.

Of course, CF will only cache 1024 templates by default.. and i think
this is where part of my problem was.  I had 50,000 class files, most
of which were the same just residing in separate subdirectories (about
2200 subdirectories containing the same 150 files).

After cleaning out the cfclasses folder, it doesn't take long for
there to quickly be 5000 classes in there.  And caching templates uses
memory, and swapping templates in and out of memory takes CPU and such
too.

So I figured.. if I had fewer class files, they could *ALL* remain
cached in memory.  I'd probably reduce CPU even more if I enabled
trusted cache.

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308741
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to