Re: Function caching...
| From: | Ulf Wendel | Date: | Fri, 08 Dec 2000 22:02:00 +0000 |
| Subject: | Re: Function caching... | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40612@lists.php.net to get a copy of this message | ||
Jacob Verhoeks wrote:
>
> On Friday 08 December 2000 22:30, you wrote:
> > Jacob Verhoeks wrote:
> > > I'm developing a large web application.
> > > The code is very large now (2mb).
> > >
> > > The performance problem is not with executing but with the loading of the
> > > code. We are currently developing a application server in php. That will
> > > be
> >
> > Yes the compile (loading) time is much to long. PHP 4 need ~1 second to
> > compule 8k loc on out developement server (Netra T1). The Zend Encoder
> > and Zend Cache might improve this dramatically.
>
> I hope so :), maybe the zend compiler will be even faster.
Look at the name it's "Encoder". It's no longer Compiler. I doubt that
we can expect dramatic speed improvements due to code optimizations, but
the encoded format might be easier to load for PHP. In my eyes the Zend
Cache is of more importance.
> > Nevertheless in some cases it would be very nice to have a "function
> > call cache" as described. Think of templates or functions working on
> > large tree structures. I played around with a cache implemented on the
> > user side and yes, it's getting faster...
>
> I know sites who use wget to get a static version to serve the internet.
> The php site is only used for easy editing
With cached functions calls you could define a cache lifetime which
allows you to automatically generate a "new version" every n seconds
without the need of an external tool.
Ulf