Re: Questions about optimizing memory usage

2005-12-18 Thread Tom Schindl
Chase Venters wrote: On Thursday 15 December 2005 03:35 pm, Perrin Harkins wrote: Not a great way to start your post. Please read this: http://modperlbook.org/html/ch10_01.html My apologies. I do own the book and I have read it, but it was some time ago and I didn't remember that some

Re: Questions about optimizing memory usage

2005-12-16 Thread Chase Venters
On Thursday 15 December 2005 03:35 pm, Perrin Harkins wrote: Not a great way to start your post. Please read this: http://modperlbook.org/html/ch10_01.html My apologies. I do own the book and I have read it, but it was some time ago and I didn't remember that some of my questions were

Re: Questions about optimizing memory usage

2005-12-16 Thread Perrin Harkins
On Fri, 2005-12-16 at 03:33 -0600, Chase Venters wrote: Well, I should have been more clear here that I was no longer talking about prefork. What I meant by COW here was actually that if you were going to use multiplicity with Perl_clone, since the threads would share memory, Perl would

Re: Questions about optimizing memory usage

2005-12-16 Thread Philip M. Gollucci
And BDB would be dependency creep, which is quite difficult to fight in perl sometimes (that's just because there are a zillion useful CPAN modules) :) Personally, I don't fight it. I just use zillions of CPAN modules. Amen.

Re: Questions about optimizing memory usage

2005-12-16 Thread Chase Venters
On Fri, 16 Dec 2005, Perrin Harkins wrote: It will probably be big. Perl structures tend to use several times the size of the actual data they store. That's what I'm worried about then I suppose. is this root hash, its keys / values / etc stored along with variables, or is it in the op

Re: Questions about optimizing memory usage

2005-12-16 Thread Perrin Harkins
On Fri, 2005-12-16 at 11:52 -0600, Chase Venters wrote: I wonder then if Perl would be smart enough to understand that the data is constant and not copy it with Perl_clone()? I'm pretty sure the answer is no. You can try marking things shared with threads::shared and see if that gets you

Re: Questions about optimizing memory usage

2005-12-16 Thread Frank Wiles
On Fri, 16 Dec 2005 12:51:36 -0500 (EST) Philip M. Gollucci [EMAIL PROTECTED] wrote: And BDB would be dependency creep, which is quite difficult to fight in perl sometimes (that's just because there are a zillion useful CPAN modules) :) Personally, I don't fight it. I just use

Re: Questions about optimizing memory usage

2005-12-15 Thread Perrin Harkins
On Thu, 2005-12-15 at 01:15 -0600, Chase Venters wrote: I could probably get some of these answers myself with more study of the mod_perl / perl source, but I was hoping someone might just know the answer and be able to tell me :) Not a great way to start your post. Please read this:

Questions about optimizing memory usage

2005-12-14 Thread Chase Venters
Greetings, I have some questions about optimizing memory usage. I could probably get some of these answers myself with more study of the mod_perl / perl source, but I was hoping someone might just know the answer and be able to tell me :) First off, am I correct