RE: [PHP-DEV] overloading JNI return values
| From: | Brian Schaffner | Date: | Tue, 29 Jun 1999 19:27:46 +0000 |
| Subject: | RE: [PHP-DEV] overloading JNI return values | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7832@lists.php.net to get a copy of this message | ||
> > I haven't looked at that part of the code, but David
> Sklar's idea about
> > using the mod_jserv protocol to talk to a persistent JVM
> seems like a good
> > place to start to me.
>
> I'm curious... this happened, and a persistant JVM was used,
> would this mean
> that we'd suddenly have a persistant resource accessible from
> any httpd
> process that would store objects that didn't need to be
> serialized()/unserialized() at every script invocation? I
> know it would only
> be for people using the JVM, and I don't know about memory
> usage, but it
> seems that could be huge win for people with complex session
> information to
> store...
well, yes & no. you would need to keep a "reference" to the particular class
you wanted to persist. otherwise, the java garbage collector will eat it up.
there'd almost need to be a persistent PHP class that could do that. it's
not
impossible - but it is hurting my brain right now ;-)
-brian-