If I recall correctly, Peter loads up all the data into the object, but then
allows you to treat the object like an iterator, where each loop iteration
loads a new row of data into the object. So even though there is only 1
instance, it keeps getting repopulated as you loop over a set of data
(query, array, etc.).

On Nov 12, 2007 6:06 PM, Baz <[EMAIL PROTECTED]> wrote:

>
> @Peter
> What you wrote is very interesting. When you say you use singletons to
> enhance performance, where do you store the specific instance data for
> each property? Are you, perhaps, storing the metadata for each
> property instance locally in the singleton in a native cf type (i.e.
> query) then using that metadata to pass into the functions when
> needed?
>
> Cheers,
> Baz
>
>
>
> On Nov 11, 2007 6:41 PM, Brian Kotek <[EMAIL PROTECTED]> wrote:
> > As always, it's a trade-off. In this case, if the advantage of having
> email
> > wrapped up into its own class is very high (perhaps the behavior of
> email is
> > expected to change often, or needs to be reused in many other classes),
> then
> > that advantage is worth the performance cost of creating it for the
> objects
> > that need it. However, I wouldn't just go do this with all properties of
> all
> > objects. It has to be done for a valid reason, with an understanding of
> the
> > pros and cons.
> >
> > In general, small classes ARE preferred. Smaller objects are much more
> > likely to be cohesive. The larger an object gets, the more likely it is
> that
> > is might be doing too much and the more likely that future changes will
> be
> > more difficult to make.
> >
> >
> >
> >
> > >
> > >
> > >
> > >
> >
> >
> >  >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to