Re: Re: persistent java virtual machine under PHP
| From: | Derick Rethans | Date: | Thu, 05 Dec 2002 10:34:21 +0000 |
| Subject: | Re: Re: persistent java virtual machine under PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92101@lists.php.net to get a copy of this message | ||
On Thu, 5 Dec 2002, Maróy Ákos wrote:
> Derick Rethans wrote:
> > Have a look at www.vl-srm.net, and more even the article about it @
> > http://www.vl-srm.net/doc/articles/php-almanac-2002.php
> > (the part about
> > Bananas might be th emost relevant thing).
>
> Thanks for the info. Though I could implement a similar deamon in java,
> and call it through XML PRC or other similar way via a network socket.
> (As my original intention was to fire up a JVM and call java functions
> from there.) But using network sockets is far mor expensive than calling
> through JNI. In my case, it seems that such a solution would not worth it.
You can use UNIX domain sockets, which boosts performance a _lot_. And
SRM has no XML bloat as overhead.
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------