[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: After retrieving data from DB, the memory doesn't seem to be freed up


On 5/10/07, Lionel MARTIN <suppressed> wrote:
-I'll try avoid using large chunks of data so that interpreters memory
footprint don't grow too big.

Yes.

-I'll try to use, in my Perl scripts, lexical variables instead of global
variables, so that I'm sure the used memory can be resued for later requests
(global variables, on the other hand, stick in memory, due to mod perl way
of operating)

Not really.  In terms of memory, there's no difference.  The reason
you should use lexicals is that it's a better programming style.

There's really no difference in the way globals behave under mod_perl.
You just don't notice it under CGI because the process quits right
after the request has been served.

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.