On Wed, Apr 14, 2010 at 12:51:58PM +0100, Alex Francis wrote:
> On Wed, Apr 14, 2010 at 11:54 AM, David Cantrell <[email protected]> 
> wrote:
> > Depending on the lifetime of your objects, very slow instantiation might
> > not matter much - much like how it doesn't matter if a mod_perl-ised
> > Apache takes an extra coupla minutes to start.
> Quite so. I think in cases where I'm expecting to create a huge number
> of "objects" and am constrained by CPU time, I'd already be
> considering using simple hash refs instead of any kind of OO
> implementation.

Here we instantiate a huge number of objects - most of which have quite
short lifetimes - but dropping their objectiness and using plain ol'
hashes would be very much a retrograde step: but then, the underlying
data structures can be quite complex.

Certainly our short object lifetimes are a good argument against using
Moose, at least until it gets faster.

> > Is this for a new installation or application, or are you intending to
> > port an existing code-base to Moose?
> Most likely for new applications or libraries.

Good :-)

-- 
David Cantrell | Godless Liberal Elitist

More people are driven insane through religious hysteria than
by drinking alcohol.    -- W C Fields
_______________________________________________
BristolBathPM mailing list
[email protected]
http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm

Reply via email to