Yep, definitely. When CF compiles your source code (before it runs it), that "Save Class Files" makes CF write the compiled classes out to that directory. The only benefit this gives is that if you're short on memory, sometimes CF will cycle a compiled class out of memory, which means the next time you use it it will need to be reloaded. If the class file is already there, it'll use that, otherwise CF will need to recompile the source code (which has a performance overhead). CF will, however, attempt to keep commonly used classes in memory, and only cycle-out not-oft-used ones, so this is not much of a problem.
Obviously when you chance the source code, CF is supposed to recompile anyhow, but I have found that sometimes it *doesn't* when you've got an already compiled file for that code in that directory. This still happens on CF9, as I experienced it last week. You should try to set your "maximum templates" setting to be slightly higher than *all* your application's compiled classes (if you have the RAM to do so), and this will mean CF will never cycle anything out of RAM. The other consideration is that when CF restarts, obviously it starts with nothing in memory, so it will need to recompile everything again, which makes start-up a bit slower. On the down side of saving class files is that on Windows I actually find it degrades performance (Charlie Arehart disagrees with me here, and he's more of an expert on the topic, so take my advice with a pinch of salt), because Windows really struggles with more than a few hundred files in one directory, and most CF apps have far more than that. So this means when CF checks whether source code and compiled class file differ (which is every time the code is requested), Windows is very slow to find the file. *nix does not have this issue. On the whole, I have found it better to run *without* this setting on in a production environment. However it has not been my job to troubleshoot this sort of thing for a number of years now, so I would not take my advice as gold. -- Adam On 14 December 2012 16:13, funand learning <[email protected]> wrote: > > Another question. Is it safe to delete those files? Coldfusion does not use > any of those files, right? > > On Fri, Dec 14, 2012 at 10:05 AM, Adam Cameron < > [email protected]> wrote: > > > > > Sorry, yes. > > > > -- > > Adam > > > > On 14 December 2012 16:04, funand learning <[email protected]> > > wrote: > > > > > > > > are these cfclasses in WEB-INF folder? > > > > > > On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron < > > > [email protected]> wrote: > > > > > > > > > > > OK, but what about the files in cfclasses? It's unlikely there's old > > ones > > > > in there if the setting is off, but sometimes there's some cruft > lying > > > > around. > > > > > > > > -- > > > > Adam > > > > > > > > > > > > > > > > On 14 December 2012 15:55, fun and learning <[email protected] > > > > > > wrote: > > > > > > > > > > > > > > >Try switching off "save class files" and getting rid of all the > > files > > > in > > > > > >the cfclasses dir. They are more of a blight than a help in my > > > > experience. > > > > > > > > > > > >-- > > > > > >Adam > > > > > > > > > > > >On 14 December 2012 15:40, fun and learning < > > [email protected]> > > > > > wrote: > > > > > > > > > > > >> > > > > > > > > > > This option is already unchecked in Coldfusion admin > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353471 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

