Re: persistent zval
| From: | Stanislav Malyshev | Date: | Thu, 11 Dec 2014 20:25:36 +0000 |
| Subject: | Re: persistent zval | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79581@lists.php.net to get a copy of this message | ||
Hi!
> Connection pooling could be a good usage of this if we manage to get
> this working again.
Connection pooling is persisting external resources, usually, which can
be done with little regard to zvals, since zval for resource is just a
container holding an opaque pointer. A number of extensions do
persistent connections without really persisting zvals. However, in many
cases PHP is multiprocess, so pooling becomes kind of problematic here -
it may be hard or impossible to share connections between processes, and
if you have a lot of processes, keeping connection per process can
become expensive. That is to say, connection pooling is a different can
of worms :)
--
Stas Malyshev
smalyshev@gmail.com