I tend to use UDFs for more then general purpose things email validation
and the like. I will also use UDFs to simplify code. For example, I have
a udf which does a date _and_ time format on a date object. This means
that instead of doing:

#dateFormat(somedate)# #timeFormat(somedate)#

I can do:

#dateTimeFormat(someDate)#

Ok - it's not that big a deal, but it does make life easier for me. Plus
it makes it easier to update a site wide date and time mask. (Which you
can do w/o a UDF of course, just use an application variable for the
masks.)

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, October 08, 2002 8:58 AM
> To: CF-Talk
> Subject: RE: overhead for large UDF libraries?
> 
> 
> 10 - 20 on a typical site, damn, I've only ever used 2  :OP
> 
> Ade
> 
> -----Original Message-----
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: 08 October 2002 13:45
> To: CF-Talk
> Subject: RE: overhead for large UDF libraries?
> 
> 
> I've seen a CFMX box include 600 UDFS. The first hit was.... 
> um... icky.
> The second hit was as if nothing at all was being included. That being
> said...
> 
> Yes, if you cfinclude ANYTHING, you slow the page down.
> 
> However, what you want to know is if it will have a _significant_
> impact.
> 
> In my opinion, under most circumstances, the answer is no.
> 
> I would not cfinclude 600 UDFs of course, but on a typical site that
> uses maybe 10-20 UDFs, I wouldn't think twice about it.
> 
> ==============================================================
> =========
> Raymond Camden, ColdFusion Jedi Master for Hire
> 
> Email    : [EMAIL PROTECTED]
> WWW      : www.camdenfamily.com/morpheus
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -----Original Message-----
> > From: Gyrus [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, October 07, 2002 7:55 PM
> > To: CF-Talk
> > Subject: overhead for large UDF libraries?
> > 
> > 
> > I'm curious (again!). Just starting to use UDFs to any 
> > extent... what are
> > the overheads (if any) involved in CFINCLUDEing one or more 
> > large libraries
> > of UDFs?
> > 
> > I've found various references, but I can't find something 
> > that hits the nail
> > on the head. Here's a few things I think or am unclear about:
> > 
> > - I guess it's wise to have cfm UDF library files, not to 
> > have each UDF in
> > its own cfm file.
> > 
> > - And I guess if this is so, they're best divided up by 
> > function, as per
> > cflib.org.
> > 
> > - But how large should a UDF library be? Is the developer's 
> > preference the
> > limit (i.e. maintainence issues)? Or would it affect 
> > performance if you're
> > including too big a file when you might not be using all of 
> > the functions in
> > a request? Is this just one of the balances to work out?
> > 
> > - Also, if you've got all your functions in a few libraries, 
> > should you just
> > CFINCLUDE them all in Application.cfm? Again, is this affecting
> > performance - a bit? Significantly?
> > 
> > Am I getting confused with libraries of JS files, where you 
> > obviously don't
> > want a user to download a massive JS file when they might 
> > only use a few
> > functions in using a web site. As UDFs don't have any sort of 
> > life past the
> > server, what does CFINCLUDE mean in this context? Is it just 
> > creating a
> > reference to the file, so it knows where to find the 
> > functions, or does it
> > have to parse/compile the file each request?
> > 
> > Any light welcome!
> > 
> > - Gyrus
> > 
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > - [EMAIL PROTECTED]
> > work: http://www.tengai.co.uk
> > play: http://www.norlonto.net
> > - PGP key available
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > 
> > 
> > +
> > 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to