> -----Original Message----- > From: Perrin Harkins [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 17, 2005 3:13 PM > To: Barksdale, Ray > Cc: mod_perl > Subject: Re: sharing big global hash and objects >
> > Does that work? It looks really strange to me, and may be doing some > copying. Yep. Works under mod_perl and it's fast, too. But I got to thinking about what happens during blessing and that there are 2054 of these thingies. > > > My question is will this cause $hash (or the used parts) to > come unshared > > in mod_perl2? > > Probably. There are some random factors involved here, like page > boundaries. > ok. > > Does Perl mark the anonymous hash ($hash->{$table}->{$field}) > > as being blessed into FooBar thereby causing a copy-on-write? > > It does mark variables when you bless them. > > Why don't you do all of this before forking? > > - Perrin > > About 10 min. after sending I had one of those "Doh!" moments and realized that building the objects before the fork would take care of that. Got busy and forgot to followup. Thanks *****CONFIDENTIALITY NOTICE***** This e-mail and any files or attachments may contain confidential and privileged information. If you have received this message in error, please notify the sender at the above e-mail address and delete it and all copies from your system.