# New Ticket Created by  Lloyd Fournier 
# Please include the string:  [perl #127020]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127020 >


use MONKEY-SEE-NO-EVAL;

sub MAIN($file) {
    {
        EVAL '=pod ' ~ "a" x 1_000_000;
    }
    note "sleeping -- check memory usage now! for me it gets to ~ 1GB;
    sleep 60;
}

Fairly self explanatory. This leads from perl6/docs htmlify.p6 to take >
1GB over the course of compiling perl6/docs.

2ยข:
Where does this 1GB come from? 1 million 'a's depending on how it's stored
is ~1mb. It is not the data in $=pod that is taking the space. I think it's
the pod string concatenating code in Grammar.nqp, Actions.nqp and Pod.nqp
and associated variables. But they should be freed after the EVALs compile
time. But it looks like they are not.

Reply via email to