Re: mod_perl and 700k files...

2001-05-12 Thread Morbus Iff

 I'm relatively new to mod_perl... I've got a 700k file that is loaded each
 time I run a CGI script, so I'm hoping to cache the file using mod_perl
 somehow. The file will change occasionally (maybe once a week) - the reload
 of a few seconds isn't worrisome, but it has to be done without restarting
 the server.

Boy you sure got some complex answers...

You know, I really was thinking the same thing myself, but I'm new with
mod_perl, so I thought it was normal. Funnily enough, I got some offlist
replies about how sending signals causes memory leaks (and how the mod_perl
people won't admit it), and how Stas flips out a lot. Ah well...

I store a .stor file which is a storable dump of my XML tree. I check the
mtime of that against the mtime of the .xml file. Whichever is newer I
load that. Works fast and is very simple.

I'll certainly check it out. I also started looking into SAX to see if I
could do something with that as well, and that looks promising too. Tell
me, is there some write up of the differences between XPath and SAX? And
why I should use either one?

-- 
  ICQ: 2927491  /  AOL: akaMorbus
   Yahoo: morbus_iff/  Jabber: [EMAIL PROTECTED]
   [EMAIL PROTECTED]   /   http://www.disobey.com/



Re: mod_perl and 700k files...

2001-05-12 Thread Perrin Harkins

on 5/12/01 5:46 PM, Morbus Iff at [EMAIL PROTECTED] wrote:
 I store a .stor file which is a storable dump of my XML tree. I check the
 mtime of that against the mtime of the .xml file. Whichever is newer I
 load that. Works fast and is very simple.
 
 I'll certainly check it out.

The only trouble with that is that you will have a separate copy in every
child taking up 700K or more.  You can only avoid that if you restart the
server or use some kind of shared memory approach.

- Perrin




Re: mod_perl and 700k files...

2001-05-12 Thread Matt Sergeant

On Sat, 12 May 2001, Morbus Iff wrote:

 I store a .stor file which is a storable dump of my XML tree. I check the
 mtime of that against the mtime of the .xml file. Whichever is newer I
 load that. Works fast and is very simple.
 
 I'll certainly check it out. I also started looking into SAX to see if I
 could do something with that as well, and that looks promising too. Tell
 me, is there some write up of the differences between XPath and SAX? And
 why I should use either one?

Kip Hampton is doing a series of three articles on XML.com about just this
sort of thing. The first one has gone out, so expect the next in a couple
of weeks and then a month after that for the last one.

-- 
Matt/

/||** Founder and CTO  **  **   http://axkit.com/ **
   //||**  AxKit.com Ltd   **  ** XML Application Serving **
  // ||** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
 \\//
 //\\
//  \\




[OT] perl mailing lists

2001-05-12 Thread Rick Myers

Sorry for the off-topic question, so I'll make it quick.

Does anyone have pointers to any intermediate to advanced
level perl mailing lists?

Rick Myers[EMAIL PROTECTED]

The Feynman Problem   1) Write down the problem.
Solving Algorithm 2) Think real hard.
  3) Write down the answer.



Re: [OT] perl mailing lists

2001-05-12 Thread Stas Bekman

On Sun, 13 May 2001, Rick Myers wrote:

 Sorry for the off-topic question, so I'll make it quick.

 Does anyone have pointers to any intermediate to advanced
 level perl mailing lists?

http://lists.perl.org/

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/