> Hello and thanks for File::Slurp.
>
> I was using File::Slurp with some large files and I noticed memory
> wasn't being returned to the OS when scalars fell out of scope, I
> thought it worth mentioning, and was thinking it would be useful in the
> docs.

This is just how Perl works. It never returns memory that it allocates
to the OS. This can make slurping problematic, but it's not specific to
this module. Anything that loads a lot of data into memory could be a
problem.
I suppose a note in the docs wouldn't hurt, but it's not module-specific.

> > Hello and thanks for File::Slurp.
> >
> > I was using File::Slurp with some large files and I noticed memory
> > wasn't being returned to the OS when scalars fell out of scope, I
> > thought it worth mentioning, and was thinking it would be useful in

the
Show quoted text

> > docs.

>
> This is just how Perl works. It never returns memory that it allocates
> to the OS. This can make slurping problematic, but it's not specific

to
Show quoted text

> this module. Anything that loads a lot of data into memory could be a
> problem.
>
> I suppose a note in the docs wouldn't hurt, but it's not module-

>> Hello and thanks for File::Slurp.
>>
>> I was using File::Slurp with some large files and I noticed memory
>> wasn't being returned to the OS when scalars fell out of scope, I
>> thought it worth mentioning, and was thinking it would be useful in the
>> docs.

Show quoted text

DvR> This is just how Perl works. It never returns memory that it allocates
DvR> to the OS. This can make slurping problematic, but it's not specific to
DvR> this module. Anything that loads a lot of data into memory could be a
DvR> problem.

Show quoted text

DvR> I suppose a note in the docs wouldn't hurt, but it's not
DvR> module-specific.

i have added notes to the pod for scalar_ref and buf_ref that using them
will be faster and save ram usage by not doing an extra copy.
i am working (finally) on a new release and catching up on many
requests.
thanx,
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------