About memory limit... to be fair enough, I just copy this word from `perldoc less` and add parameter for fun - I don't mean something special here. But ability to limit memory sometimes very good idea. I don't mean perl optimizations here or OS limits like `setrlimit` (because as far as I know it's impossible to handle these limits - OS just kill the process).
All you know what perl eat a lot of memory - it trade memory for speed. But user's script sometimes also trade memory for speed. All sort of caches do this. And I think it's a good to know inside script what it reach some memory limits. In this case user can set callback routine or signal handler which will empty caches, flush buffers, etc.
In reply to Re: Re: use less 'CPU'
by powerman
in thread use less 'CPU'
by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |