Hi Manuel,

On Sun, 13 Oct 2013 13:51:41 +0200
Manuel Reimer <manuel.s...@nurfuerspam.de> wrote:

> Hello,
> 
> I would like to use Perl on an embedded device, which only has 64MB of RAM.
> 
> Are there any tricks to reduce the memory usage of the perl interpreter?
> 

You can try building the perl interpreter/run-time-library with support for some
aspects of the core language compiled-out (like Unicode, threads, etc.). See the
files in the core distribution such as "README" or "INSTALL". Otherwise,
there are ways to reduce the memory consumption of a running perl process,
especially those that avoid memory leaks such as those caused by circular
references, preferring packed strings over arrays over hashes, and using
specialised Perl/XS code for memory intensive code.

Good luck!

Regards,

        Shlomi Fish     

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Understand what Open Source is - http://shlom.in/oss-fs

I may be a geek, but I’m a true Klingon geek‐warrior! And a true Klingon geek
warrior ALWAYS bottom‐posts.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to