> -----Original Message-----
> From: G.W. Haywood [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 30, 2000 7:29 AM
> To: Matthew Byng-Maddick
> Cc: [EMAIL PROTECTED]
> Subject: Re: maximum (practical) size of $r->notes
> 
> 
> Hi all,
> 
> On Mon, 30 Oct 2000, Matthew Byng-Maddick wrote:
> 
> > On Mon, 30 Oct 2000, Matt Sergeant wrote:
> > > On Mon, 30 Oct 2000, Todd Finney wrote:
> > > AxKit uses the notes table to store interim strings for template
> > > processing. I've not yet heard a bug related to it, but 
> then I'm not
> > > delivering massive files. I'd imagine it would probably 
> be limited by
> > > available memory.
> > 
> > This is basically correct. The notes table is tied to Apache::Table,
> 
> If it's a huge amount of data and you don't want to bloat your
> processes, why not pass a tempfile name/pointer/handle in $r->notes
> and write the data to a ramdisk?  I wouldn't think you'd lose much
> in opening and closing the file.

or (easier) just place a reference to a variable containing your data in
pnotes instead of notes - that way a reference, and not the data, is passed
around.  the data has to exist somewhere, but now you only have one copy of
it...


pnotes is (IMHO) the single greatest, but least well known method in
mod_perl - don't leave home without it...

--Geoff
> 
> 73,
> Ged.
> 

Reply via email to