arunstunner has asked for the wisdom of the Perl Monks concerning the following question:
Following is a sample code file name is while.pl
I have compiled this code by using#! /usr/bin/perl use strict ; use warnings ; my $i=0 ; while (1) { print "Testing $i\n" ; $i++ ; sleep(1); }
perlcc -o compiled while.pl
Then I executed the normal code "while.pl" and compiled code "compiled". I seen the memory and cpu usage using the ps command
ps axo %cpu,%mem,command | grep "while\|compiled" 0.0 0.0 /usr/bin/perl ./while.pl 0.0 0.1 ./compiled
why complied code taking more memory comparing with while.pl?
How to avoid the memory usage of the compiled perl code?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: why the perl complied code takes more memory?
by rjt (Curate) on Mar 02, 2013 at 09:44 UTC | |
Re: why the perl complied code takes more memory?
by igelkott (Priest) on Mar 02, 2013 at 08:29 UTC | |
Re: why the perl complied code takes more memory? (perlcc)
by Anonymous Monk on Mar 02, 2013 at 06:11 UTC |
Back to
Seekers of Perl Wisdom