perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Förtsch <>
Subject Re: non-stop generational modperl config update strategies?
Date Wed, 21 Apr 2010 15:10:00 GMT
On Wednesday 21 April 2010 16:59:01 Perrin Harkins wrote:
> In both cases you have the same drawback: it's impossible to read
> anything from the shared data without copying the data you read into
> perl variables.  A shared database only saves memory if you don't need
> all of the data to handle a request.
no, MMapDB creates read-only variables that reference the mmapped block. It 
manipulates SvPVX directly:

SvPV_set(sv, pointer);
SvLEN_set(sv, 0);         # this makes sure perl won't try to free() the space
SvCUR_set(sv, length);

You can then pass around references to that variable and nothing will be 

Torsten Förtsch

Need professional modperl support? Hire me! (

Like fantasy?

View raw message