RE: [PHP-DEV] Patch for opcode caches
| From: | Dmitry Stogov | Date: | Mon, 17 Mar 2008 07:59:46 +0000 |
| Subject: | RE: [PHP-DEV] Patch for opcode caches | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-36163@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Stanislav Malyshev [mailto:stas@zend.com]
> Sent: Friday, March 14, 2008 10:11 PM
> To: Rasmus Lerdorf
> Cc: Marcus Boerger; Dmitry Stogov; Andi Gutmans;
> internals@lists.php.net
> Subject: Re: [PHP-DEV] Patch for opcode caches
>
>
> > I don't actually see early binding as being much of a problem, the
> > real
> > problem is when the same class is both early and late
> bound. If you
> > consistently always bind early or always bind late, opcode
> caches should
> > be quite happy to let you do that. But if you mix the two,
> things get
>
> That's what we try to do in this patch - to make cache able to change
> the binding mode.
Exactly. With very small opcode cache modification, it will able to work
exactly in the same way as PHP works without any caches. The
early-binding will be performed not in compile-time, but in
file-load-from-cache-time.
Thanks. Dmitry.