On Fri, Apr 22, 2011 at 05:15:30PM +0200, Moritz Lenz wrote:
> After some futher analysis I found that perl6.pbc and the perl6 binary
> both are about 11MB in size - and 1.3MB when compressed with gzip.
> 
> So if anybody actually wants to do something about the size, teach
> parrot's pbc_to_exe compress the pbc, and uncompress into memory upon
> loading.

...this comes at the cost of not being able to mmap the bytecode,
though.  In other words, we save 10MB of disk space, but cause
each invocation of Rakudo to eat up 11MB of data memory instead
of being able to (potentially) mmap a shared copy.

> In the long run it might also be possible to come up with a more compact
> PBC format, but I guess that's much more work than compressing and
> decompressing.

Perhaps Lorito will be able to help here.  But ultimately the real
savings (both memory and startup time) will come when we can truly 
serialize Rakudo's subroutines and constant data structures.

Pm

Reply via email to