Re: memory usage / session cleanup

2003-12-20 Thread Wim Kerkhoff
Pierre Etchemaite wrote: Le Fri, 19 Dec 2003 10:38:40 -0800, Wim Kerkhoff <[EMAIL PROTECTED]> a écrit : You can't do this with MySQL, since it won't let you set a default value to a function, only a constant (null, 1, 'foo', etc). For MySQL, it seems that the way to go are TIMESTAMP field

Re: memory usage / session cleanup

2003-12-20 Thread Pierre Etchemaite
Le Fri, 19 Dec 2003 10:38:40 -0800, Wim Kerkhoff <[EMAIL PROTECTED]> a écrit : > You can't do this with MySQL, since it won't let you set a default value > to a function, only a constant (null, 1, 'foo', etc). For MySQL, it seems that the way to go are TIMESTAMP fields: http://www.mysql.com/doc

Re: memory usage

2003-12-20 Thread Hans de Groot
Hi, Thanks for all the answers. The script was just a silly example to demonstrate how I use Embperl. (one block for perl code and just dump the output at the bottom) I did not test it. But the tip about the regexp is great and I am gonna try that benchmark stuff. Anyway I now know I did not forg

Re: memory usage / session cleanup

2003-12-19 Thread Wim Kerkhoff
Hans de Groot wrote: Than an other question I installed embperl a while ago, with storable and apache session and made the session database. What is the properway to cleanup the session database? Right now I just delete the content of the session table but this also deletes the sessions of the cur

Re: memory usage

2003-12-19 Thread Kee Hinckley
At 1:44 PM +0100 12/19/03, Hans de Groot wrote: >if I make a silly script like this: Just so you know, that while is *real* inefficient. What you really want is something like: s/foo.jpg/++$counter . ".jpg"/ge See the below results. I did them in 1 iteration and 10 separately because t

Re: memory usage

2003-12-19 Thread Gerald Richter
Hi, > > I am using 1.3.6. and apache 1.3.27 > > Wel it keeps getting bigger with one page. When I reload it or click > through it it keeps growing. > Then there must be something inside the page, that grows. > To ask a beginners question: > > if I make a silly script like this: > -- > [* > op

Re: memory usage

2003-12-19 Thread Hans de Groot
Hi, I am using 1.3.6. and apache 1.3.27 Wel it keeps getting bigger with one page. When I reload it or click through it it keeps growing. To ask a beginners question: if I make a silly script like this: -- [* open F,") { $data.=$_; } close(); $counter=0; while ($data =~ s/image.

Re: memory usage

2003-12-18 Thread Gerald Richter
> > I do have one problem. My apache processes take a lot of memory. > Every request of a page it grows in size. mod_perl httpd takes a lot of memory, that can't be changed. Every new request will eat up more memory, because Perl code is compiled. If you request only one page more than once memory

Re: memory usage

2003-12-18 Thread Donovan Allen
Hans de Groot wrote: I usally create pages that look like this: [* some perl here store all output in $ouput use http_headers_out followed with and exit() if I need to redirect. *] [+$output+] Unless you need the "local" scope of the [* *] blocks, you might try the [- -] instead and see if th

memory usage

2003-12-18 Thread Hans de Groot
Hello, I use Embperl for a few years now and I am sure I am not using it in the most efficient way. I only use the %udat,%fdat features. I usally create pages that look like this: [* some perl here store all output in $ouput use http_headers_out followed with and exit() if I need to redirect. *]

Re: Question re Embperl memory usage

2000-12-23 Thread Neil Gunton
Gerald Richter wrote: > > So the only question then is, Am I using a lot more memory in this > > situation too? > > No, as long as you include them only in _one_ document (base.html), you will > not use more memory > > Hope this is more clear now Yes! Thanks so much. Have a good Christmas! I w

Re: Question re Embperl memory usage

2000-12-23 Thread Gerald Richter
> > This thing about using more memory doesn't make sense to me. As I see > it, if I include files in the same package as base.html, then they all > share base.html's package. And after the first compilation, these pages > are cached. So, in what way do they use more memory than otherwise? If you

Question re Embperl memory usage

2000-12-22 Thread Neil Gunton
Gerald, this question has been bugging me for a few days. In one of your previous emails you said the following: > > I use __PACKAGE__ because I have global variables which are set up in > > various different files (such as init.html and constants.html) which are > > executed before '*', and it i