> 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.

I think the truth lies somewhere in between both of these points.

In some cases, it will degrade performance. In other cases, it will
improve performance. It really depends on a couple of factors: disk
performance and the number of CF files you have, in total. This is one
of those things where you really have to load test your system to find
out whether it will help or hurt.

Also, Unix does in fact have this issue - the first case where I
encountered it was a Solaris box. While there are performance
differences between NTFS and common Unix or Linux filesystems like
ext4, those aren't all big when it comes to this. Of course, if you
try to browse the cfclasses directory with Windows Explorer, good luck
with that!

The real problem, in my opinion, is simply that all these files are
placed within a single directory. If there was a nested directory
structure to manage these files, average seek times would be much
better. But when you have over fifty thousand files in a single
directory - which is not uncommon in a production CF environment -
performance is going to suck.

Finally, the problem isn't really the comparison between the source
code and the compiled class - that's a separate issue, and of course
that can be disabled in production - but simply the seek time needed
to find the compiled class on disk in the first place.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:353472
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to