Re: Server-Wide Persistent objects in PHP?
| From: | Yermo M. Lamers | Date: | Mon, 26 Nov 2001 17:56:18 +0000 |
| Subject: | Re: Server-Wide Persistent objects in PHP? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71687@lists.php.net to get a copy of this message | ||
I took a look at Zend Accelerator/Cache. That's not really what I'm
looking for.
It's basically just a pseudo-compiler that caches compiled versions of
pages. It's not really a "live object cache".
What I'm looking to do is to create a global scope where I can keep live
pre-built instances of objects around. I agree the accelerator would
improve the performance, but in my case it wouldn't improve it enough.
I think I can probably get an order of magnitude performance improvement
by pre-caching live objects and making them available to all pages in an
application ... very much like mod_perl does.
With the pseudo-compiler you get an improvement, but you're still building
all your objects on every page, using them and destroying them .. you're
just avoiding the load/compilation step. I want to avoid the
load/compilation and instantiation steps because in my case, and for any
really involved system, insantiation is going to be expensive.
It looks like it should be doable if I can copy symbol tables in and out
of the zend interpreter, but it's not clear to me what portions get tied
inextricably to a given zend interpreter instance.
-- Yermo
On Mon, 26 Nov 2001, Andrei Zmievski wrote:
> On Mon, 26 Nov 2001, Andrei Zmievski wrote:
> > Yeah, it's already built and it's called Zend Encoder.
>
> Sorry, Zend Cache or Zend Accelerator, not sure what the current name
> is.
>
> -Andrei
>
>
> "Freedom comes when you learn to let go.
> Creation comes when you learn to say no."
> -madonna
>
---------------------------------------------------------------------
DTLink Software info@dtlink.com
Software Development and Consulting
---------------------------------------------------------------------